Skip to content

Commit 2be3de9

Browse files
committed
rustup
1 parent 95bcb94 commit 2be3de9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

run-test.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ cp "$MIRI_LIB_SRC/Cargo.lock" Cargo.lock
3939
# is just a re-export of the sysroot crate, so we don't get duplicate lang items.
4040
export MIRI_REPLACE_LIBRS_IF_NOT_TEST=1
4141

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"
4549

4650
# run test
4751
export CARGO_TARGET_DIR=$(pwd)/target

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2025-06-01
1+
nightly-2025-06-06

0 commit comments

Comments
 (0)