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