Skip to content

Commit

Permalink
Allow unexpected_cfgs
Browse files Browse the repository at this point in the history
Rust `nightly` just introduced a new lint that breaks us, disable it.

Same as rust-bitcoin/rust-bitcoin#2748

Please see 2748 for full description of the issue this resolves.
  • Loading branch information
tcharding committed May 7, 2024
1 parent 4590488 commit c5c5213
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/compile_descriptor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/parse_descriptor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/parse_descriptor_secret.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/roundtrip_concrete.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/roundtrip_descriptor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/roundtrip_miniscript_script.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use honggfuzz::fuzz;
use miniscript::bitcoin::blockdata::script;
use miniscript::{Miniscript, Segwitv0};
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/roundtrip_miniscript_str.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions fuzz/fuzz_targets/roundtrip_semantic.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::str::FromStr;

use honggfuzz::fuzz;
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
// Clippy lints that we have disabled
#![allow(clippy::iter_kv_map)] // https://github.com/rust-lang/rust-clippy/issues/11752
#![allow(clippy::manual_range_contains)] // I hate this lint -asp
// This one is just batshit. "Your projects are required to either have a build.rs or allow users' dependencies to disable your crypto."
#![allow(unexpected_cfgs)]

#[cfg(target_pointer_width = "16")]
compile_error!(
Expand Down

0 comments on commit c5c5213

Please sign in to comment.