File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,13 @@ cp "$MIRI_LIB_SRC/Cargo.lock" Cargo.lock
39
39
# is just a re-export of the sysroot crate, so we don't get duplicate lang items.
40
40
export MIRI_REPLACE_LIBRS_IF_NOT_TEST=1
41
41
42
- # Set the right rustflags.
43
- export RUSTFLAGS=" ${RUSTFLAGS:- } -Zforce-unstable-if-unmarked"
44
- export RUSTDOCFLAGS=" ${RUSTDOCFLAGS:- } -Zforce-unstable-if-unmarked"
42
+ # Set the right rustflags (this matches the rustc-build-sysroot defaults):
43
+ # - `-Zforce-unstable-if-unmarked`` is always needed for sysroot builds
44
+ # - `-Aunexpected_cfgs` since we do not want to be in the business of debugging unexpected_cfgs for
45
+ # the sysroot
46
+ EXTRAFLAGS=" -Zforce-unstable-if-unmarked -Aunexpected_cfgs"
47
+ export RUSTFLAGS=" ${RUSTFLAGS:- } $EXTRAFLAGS "
48
+ export RUSTDOCFLAGS=" ${RUSTDOCFLAGS:- } $EXTRAFLAGS "
45
49
46
50
# run test
47
51
export CARGO_TARGET_DIR=$( pwd) /target
Original file line number Diff line number Diff line change 1
- nightly-2025-06-01
1
+ nightly-2025-06-06
You can’t perform that action at this time.
0 commit comments