Skip to content

Commit

Permalink
Merge pull request #48 from dtolnay/checkcfg
Browse files Browse the repository at this point in the history
Resolve unexpected_cfgs warning
  • Loading branch information
dtolnay authored May 7, 2024
2 parents 70ca5ad + 84f01fa commit 746bf5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ fn main() {
println!("cargo:rustc-cfg=cfg_macro_not_allowed");
}

if version.minor >= 80 {
println!("cargo:rustc-check-cfg=cfg(cfg_macro_not_allowed)");
}

let version = format!("{:#?}\n", version);
let out_dir = env::var_os("OUT_DIR").expect("OUT_DIR not set");
let out_file = Path::new(&out_dir).join("version.expr");
Expand Down

0 comments on commit 746bf5a

Please sign in to comment.