diff --git a/Cargo.toml b/Cargo.toml index 652782f0c..329b7b418 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ version = "0.2.0-alpha.1" missing_docs = "warn" unreachable_pub = "warn" rust_2021_compatibility = { level = "warn", priority = -1 } -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] } +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] } [workspace.lints.clippy] pedantic = "warn" diff --git a/contracts/src/lib.rs b/contracts/src/lib.rs index 687c2d7b9..a20819af7 100644 --- a/contracts/src/lib.rs +++ b/contracts/src/lib.rs @@ -46,7 +46,7 @@ impl MyContract { } )] #![cfg_attr(not(feature = "std"), no_std, no_main)] #![deny(rustdoc::broken_intra_doc_links)] -#![feature(coverage_attribute)] +#![cfg_attr(coverage_nightly, feature(coverage_attribute))] extern crate alloc; pub mod access;