From 7c36fe6495351995845aba17e8196afe505fc02f Mon Sep 17 00:00:00 2001 From: Boxy Date: Tue, 30 Jul 2024 16:10:35 +0100 Subject: [PATCH] Specify has_coverage_attribute as a known cfg --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 7f59e1f57..d1093c747 100644 --- a/build.rs +++ b/build.rs @@ -35,6 +35,7 @@ fn main() { if let Some(true) = version_check::supports_feature("coverage_attribute") { println!("cargo:rustc-cfg=has_coverage_attribute"); } + println!("cargo:rustc-check-cfg=cfg(has_coverage_attribute)"); generate_self_schema(); println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap()); }