Skip to content

Commit 15ab8ed

Browse files
committed
patch out a cfg(bootstrap) we can't work around currently
1 parent 2be3de9 commit 15ab8ed

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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)]

0 commit comments

Comments
 (0)