about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2025-06-07 14:45:25 +0200
committerUrgau <urgau@numericable.fr>2025-06-07 18:11:53 +0200
commit9b1cd722ca7490ae28db77b44eefb4700ef6bb19 (patch)
treed42e3a3de1f752dd13eb59ec841c2b42738087d6
parentb283394db14a47d44a4b5ace33705cfa3873b0b5 (diff)
downloadrust-9b1cd722ca7490ae28db77b44eefb4700ef6bb19.tar.gz
rust-9b1cd722ca7490ae28db77b44eefb4700ef6bb19.zip
Fix usage of `bootstrap` in core
-rw-r--r--library/core/src/iter/sources/generator.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/core/src/iter/sources/generator.rs b/library/core/src/iter/sources/generator.rs
index c94232e09eb..0846974d526 100644
--- a/library/core/src/iter/sources/generator.rs
+++ b/library/core/src/iter/sources/generator.rs
@@ -9,8 +9,6 @@
 ///
 /// ```
 /// #![feature(iter_macro, coroutines)]
-/// # #[cfg(not(bootstrap))]
-/// # {
 ///
 /// let it = std::iter::iter!{|| {
 ///     yield 1;
@@ -19,11 +17,10 @@
 /// } }();
 /// let v: Vec<_> = it.collect();
 /// assert_eq!(v, [1, 2, 3]);
-/// # }
 /// ```
 #[unstable(feature = "iter_macro", issue = "none", reason = "generators are unstable")]
 #[allow_internal_unstable(coroutines, iter_from_coroutine)]
-#[cfg_attr(not(bootstrap), rustc_builtin_macro)]
+#[rustc_builtin_macro]
 pub macro iter($($t:tt)*) {
     /* compiler-builtin */
 }