We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bootstrap
1 parent 5377ee6 commit 1d5e645Copy full SHA for 1d5e645
library/core/src/iter/sources/generator.rs
@@ -9,8 +9,6 @@
9
///
10
/// ```
11
/// #![feature(iter_macro, coroutines)]
12
-/// # #[cfg(not(bootstrap))]
13
-/// # {
14
15
/// let it = std::iter::iter!{|| {
16
/// yield 1;
@@ -19,11 +17,10 @@
19
17
/// } }();
20
18
/// let v: Vec<_> = it.collect();
21
/// assert_eq!(v, [1, 2, 3]);
22
-/// # }
23
24
#[unstable(feature = "iter_macro", issue = "none", reason = "generators are unstable")]
25
#[allow_internal_unstable(coroutines, iter_from_coroutine)]
26
-#[cfg_attr(not(bootstrap), rustc_builtin_macro)]
+#[rustc_builtin_macro]
27
pub macro iter($($t:tt)*) {
28
/* compiler-builtin */
29
}
0 commit comments