diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-02-15 02:37:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-15 02:37:27 -0500 |
| commit | afbeefb684fe5252b386b1b5160898cbc150b54a (patch) | |
| tree | 7fdf97bf2d48cf81ecb371ec24413da7b3decc23 /library | |
| parent | 54a0f387ea8c7bcb79b8e40c074a484d31b51990 (diff) | |
| parent | f02c3f82f793b55879aa9449fe08fec435da046a (diff) | |
| download | rust-afbeefb684fe5252b386b1b5160898cbc150b54a.tar.gz rust-afbeefb684fe5252b386b1b5160898cbc150b54a.zip | |
Rollup merge of #135687 - joseluis:feat-reexport_from_coroutine, r=scottmcm
re-export `FromCoroutine` from `core::iter` tracking issue: https://github.com/rust-lang/rust/issues/43122 fixes: #135686
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/iter/mod.rs | 6 | ||||
| -rw-r--r-- | library/core/src/iter/sources.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/iter/mod.rs b/library/core/src/iter/mod.rs index 635e14e769a..d62a445d704 100644 --- a/library/core/src/iter/mod.rs +++ b/library/core/src/iter/mod.rs @@ -420,14 +420,14 @@ pub use self::adapters::{Intersperse, IntersperseWith}; issue = "42168" )] pub use self::range::Step; +#[stable(feature = "iter_empty", since = "1.2.0")] +pub use self::sources::{Empty, empty}; #[unstable( feature = "iter_from_coroutine", issue = "43122", reason = "coroutines are unstable" )] -pub use self::sources::from_coroutine; -#[stable(feature = "iter_empty", since = "1.2.0")] -pub use self::sources::{Empty, empty}; +pub use self::sources::{FromCoroutine, from_coroutine}; #[stable(feature = "iter_from_fn", since = "1.34.0")] pub use self::sources::{FromFn, from_fn}; #[stable(feature = "iter_once", since = "1.2.0")] diff --git a/library/core/src/iter/sources.rs b/library/core/src/iter/sources.rs index c635992dfbd..1eb4367b183 100644 --- a/library/core/src/iter/sources.rs +++ b/library/core/src/iter/sources.rs @@ -15,7 +15,7 @@ pub use self::empty::{Empty, empty}; issue = "43122", reason = "coroutines are unstable" )] -pub use self::from_coroutine::from_coroutine; +pub use self::from_coroutine::{FromCoroutine, from_coroutine}; #[stable(feature = "iter_from_fn", since = "1.34.0")] pub use self::from_fn::{FromFn, from_fn}; #[stable(feature = "iter_once", since = "1.2.0")] |
