Skip to content

Commit 9b1cd72

Browse files
committed
Fix usage of bootstrap in core
1 parent b283394 commit 9b1cd72

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

library/core/src/iter/sources/generator.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
///
1010
/// ```
1111
/// #![feature(iter_macro, coroutines)]
12-
/// # #[cfg(not(bootstrap))]
13-
/// # {
1412
///
1513
/// let it = std::iter::iter!{|| {
1614
/// yield 1;
@@ -19,11 +17,10 @@
1917
/// } }();
2018
/// let v: Vec<_> = it.collect();
2119
/// assert_eq!(v, [1, 2, 3]);
22-
/// # }
2320
/// ```
2421
#[unstable(feature = "iter_macro", issue = "none", reason = "generators are unstable")]
2522
#[allow_internal_unstable(coroutines, iter_from_coroutine)]
26-
#[cfg_attr(not(bootstrap), rustc_builtin_macro)]
23+
#[rustc_builtin_macro]
2724
pub macro iter($($t:tt)*) {
2825
/* compiler-builtin */
2926
}

0 commit comments

Comments
 (0)