We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a9bc76 commit bf067c7Copy full SHA for bf067c7
src/bootstrap/src/core/build_steps/test.rs
@@ -2756,6 +2756,10 @@ impl Step for Crate {
2756
// `lib.rs` file, and a `lib.miri.rs` file exists in the same folder, we build that
2757
// instead. But crucially we only do that for the library, not the test builds.
2758
cargo.env("MIRI_REPLACE_LIBRS_IF_NOT_TEST", "1");
2759
+ // std needs to be built with `-Zforce-unstable-if-unmarked`. For some reason the builder
2760
+ // does not set this directly, but relies on the rustc wrapper to set it, and we are not using
2761
+ // the wrapper -- hence we have to set it ourselves.
2762
+ cargo.rustflag("-Zforce-unstable-if-unmarked");
2763
cargo
2764
} else {
2765
// Also prepare a sysroot for the target.
0 commit comments