Skip to content

Commit c5c5213

Browse files
committed
Allow unexpected_cfgs
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.
1 parent 4590488 commit c5c5213

9 files changed

+18
-0
lines changed

fuzz/fuzz_targets/compile_descriptor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

fuzz/fuzz_targets/parse_descriptor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

fuzz/fuzz_targets/parse_descriptor_secret.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

fuzz/fuzz_targets/roundtrip_concrete.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

fuzz/fuzz_targets/roundtrip_descriptor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

fuzz/fuzz_targets/roundtrip_miniscript_script.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use honggfuzz::fuzz;
24
use miniscript::bitcoin::blockdata::script;
35
use miniscript::{Miniscript, Segwitv0};

fuzz/fuzz_targets/roundtrip_miniscript_str.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

fuzz/fuzz_targets/roundtrip_semantic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unexpected_cfgs)]
2+
13
use std::str::FromStr;
24

35
use honggfuzz::fuzz;

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
// Clippy lints that we have disabled
8989
#![allow(clippy::iter_kv_map)] // https://github.com/rust-lang/rust-clippy/issues/11752
9090
#![allow(clippy::manual_range_contains)] // I hate this lint -asp
91+
// This one is just batshit. "Your projects are required to either have a build.rs or allow users' dependencies to disable your crypto."
92+
#![allow(unexpected_cfgs)]
9193

9294
#[cfg(target_pointer_width = "16")]
9395
compile_error!(

0 commit comments

Comments
 (0)