Skip to content

Commit

Permalink
Merge pull request #298 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 e7ad85e + cf43d0c commit 0ccee7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ use std::process::{self, Command, Stdio};
fn main() {
println!("cargo:rerun-if-changed=build/probe.rs");

println!("cargo:rustc-check-cfg=cfg(error_generic_member_access)");
println!("cargo:rustc-check-cfg=cfg(thiserror_nightly_testing)");

let error_generic_member_access;
let consider_rustc_bootstrap;
if compile_probe(false) {
Expand Down

0 comments on commit 0ccee7c

Please sign in to comment.