We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e065b commit 38d277eCopy full SHA for 38d277e
src/tools/miri/cargo-miri/src/setup.rs
@@ -136,7 +136,9 @@ pub fn setup(
136
// But keep the overflow checks, they are cheap. This completely overwrites flags
137
// the user might have set, which is consistent with normal `cargo build` that does
138
// not apply `RUSTFLAGS` to the sysroot either.
139
- let rustflags = &["-Cdebug-assertions=off", "-Coverflow-checks=on"];
+ // We also need to set `force-unstable-if-unmarked` to ensure the sysroot builds.
140
+ let rustflags =
141
+ &["-Cdebug-assertions=off", "-Coverflow-checks=on", "-Zforce-unstable-if-unmarked"];
142
143
let mut after_build_output = String::new(); // what should be printed when the build is done.
144
let notify = || {
0 commit comments