Skip to content

Commit be5677b

Browse files
authored
Merge pull request #99 from RalfJung/rustup
rustup
2 parents 95bcb94 + 15ab8ed commit be5677b

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-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-src.diff

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/library/core/src/iter/sources/generator.rs b/library/core/src/iter/sources/generator.rs
2+
index c94232e09eb..155fa9368ad 100644
3+
--- a/library/core/src/iter/sources/generator.rs
4+
+++ b/library/core/src/iter/sources/generator.rs
5+
@@ -9,8 +9,6 @@
6+
///
7+
/// ```
8+
/// #![feature(iter_macro, coroutines)]
9+
-/// # #[cfg(not(bootstrap))]
10+
-/// # {
11+
///
12+
/// let it = std::iter::iter!{|| {
13+
/// yield 1;
14+
@@ -19,7 +17,6 @@
15+
/// } }();
16+
/// let v: Vec<_> = it.collect();
17+
/// assert_eq!(v, [1, 2, 3]);
18+
-/// # }
19+
/// ```
20+
#[unstable(feature = "iter_macro", issue = "none", reason = "generators are unstable")]
21+
#[allow_internal_unstable(coroutines, iter_from_coroutine)]

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)