diff --git a/code/common/src/lib.rs b/code/common/src/lib.rs index 184f10e5c..3aaa0b8c4 100644 --- a/code/common/src/lib.rs +++ b/code/common/src/lib.rs @@ -9,6 +9,8 @@ rustdoc::private_intra_doc_links, variant_size_differences )] +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))] #![cfg_attr(coverage_nightly, feature(coverage_attribute))] diff --git a/code/driver/src/lib.rs b/code/driver/src/lib.rs index 328ee1334..25ea55797 100644 --- a/code/driver/src/lib.rs +++ b/code/driver/src/lib.rs @@ -9,6 +9,8 @@ rustdoc::private_intra_doc_links, variant_size_differences )] +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))] #![cfg_attr(coverage_nightly, feature(coverage_attribute))] diff --git a/code/network/src/lib.rs b/code/network/src/lib.rs index a14a9cc71..6c6747eeb 100644 --- a/code/network/src/lib.rs +++ b/code/network/src/lib.rs @@ -1,3 +1,5 @@ +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(coverage_nightly, feature(coverage_attribute))] mod msg; diff --git a/code/node/src/lib.rs b/code/node/src/lib.rs index e51744f8b..2f9607846 100644 --- a/code/node/src/lib.rs +++ b/code/node/src/lib.rs @@ -1,3 +1,5 @@ +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(coverage_nightly, feature(coverage_attribute))] pub mod config; diff --git a/code/round/src/lib.rs b/code/round/src/lib.rs index d8f8cebb6..99efbe12e 100644 --- a/code/round/src/lib.rs +++ b/code/round/src/lib.rs @@ -9,6 +9,8 @@ rustdoc::private_intra_doc_links, variant_size_differences )] +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))] #![cfg_attr(coverage_nightly, feature(coverage_attribute))] diff --git a/code/test/src/lib.rs b/code/test/src/lib.rs index 869cfe276..80907dcf1 100644 --- a/code/test/src/lib.rs +++ b/code/test/src/lib.rs @@ -1,5 +1,7 @@ #![forbid(unsafe_code)] #![deny(trivial_casts, trivial_numeric_casts)] +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(coverage_nightly, feature(coverage_attribute))] mod address; diff --git a/code/vote/src/lib.rs b/code/vote/src/lib.rs index 91c1e89fa..73055d319 100644 --- a/code/vote/src/lib.rs +++ b/code/vote/src/lib.rs @@ -9,6 +9,8 @@ rustdoc::private_intra_doc_links, variant_size_differences )] +// For coverage on nightly +#![allow(unexpected_cfgs)] #![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))] #![cfg_attr(coverage_nightly, feature(coverage_attribute))]