Skip to content

Commit

Permalink
Fix cargo-miri not respecting -Zcheck-cfg and lying about it's mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Nov 19, 2023
1 parent e1e1cb4 commit 5b41fac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ impl Miri {
cargo.env("MIRI_SYSROOT", &miri_sysroot);
// Debug things.
cargo.env("RUST_BACKTRACE", "1");
// Manually expect the cfg feature.
cargo.rustflag("--check-cfg=cfg(feature,values(any()))");

let mut cargo = Command::from(cargo);
let _guard = builder.msg(
Expand Down

0 comments on commit 5b41fac

Please sign in to comment.