File tree Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Expand file tree Collapse file tree 3 files changed +29
-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
+ 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)]
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