Skip to content

Commit 5b41fac

Browse files
committed
Fix cargo-miri not respecting -Zcheck-cfg and lying about it's mode
1 parent e1e1cb4 commit 5b41fac

File tree

1 file changed

+2
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+2
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ impl Miri {
545545
cargo.env("MIRI_SYSROOT", &miri_sysroot);
546546
// Debug things.
547547
cargo.env("RUST_BACKTRACE", "1");
548+
// Manually expect the cfg feature.
549+
cargo.rustflag("--check-cfg=cfg(feature,values(any()))");
548550

549551
let mut cargo = Command::from(cargo);
550552
let _guard = builder.msg(

0 commit comments

Comments
 (0)