diff options
| author | Urgau <urgau@numericable.fr> | 2025-06-07 14:45:25 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-06-07 18:11:53 +0200 |
| commit | 9b1cd722ca7490ae28db77b44eefb4700ef6bb19 (patch) | |
| tree | d42e3a3de1f752dd13eb59ec841c2b42738087d6 | |
| parent | b283394db14a47d44a4b5ace33705cfa3873b0b5 (diff) | |
| download | rust-9b1cd722ca7490ae28db77b44eefb4700ef6bb19.tar.gz rust-9b1cd722ca7490ae28db77b44eefb4700ef6bb19.zip | |
Fix usage of `bootstrap` in core
| -rw-r--r-- | library/core/src/iter/sources/generator.rs | 5 |
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 */ } |
