diff options
| author | David Wood <david.wood2@arm.com> | 2025-02-12 05:41:02 +0000 |
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-02-24 14:35:30 +0000 |
| commit | d6bb98e7579b3d8711cc00dc95a9425395bae9df (patch) | |
| tree | e5ad282436588a291c3543559db3b171688045a5 /library/std/src/prelude/mod.rs | |
| parent | ad27045c31a9f37ad7d44ca2a403de52d1a896d3 (diff) | |
| download | rust-d6bb98e7579b3d8711cc00dc95a9425395bae9df.tar.gz rust-d6bb98e7579b3d8711cc00dc95a9425395bae9df.zip | |
span: add a "future" edition
It's hard to implement edition migrations without having a perma-unstable "future" edition to target.
Diffstat (limited to 'library/std/src/prelude/mod.rs')
| -rw-r--r-- | library/std/src/prelude/mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/library/std/src/prelude/mod.rs b/library/std/src/prelude/mod.rs index 992a9207a72..5f7097c26e2 100644 --- a/library/std/src/prelude/mod.rs +++ b/library/std/src/prelude/mod.rs @@ -160,3 +160,18 @@ pub mod rust_2024 { #[doc(no_inline)] pub use core::prelude::rust_2024::*; } + +/// The Future version of the prelude of The Rust Standard Library. +/// +/// See the [module-level documentation](self) for more. +#[doc(hidden)] +#[unstable(feature = "prelude_future", issue = "none")] +pub mod rust_future { + #[stable(feature = "rust1", since = "1.0.0")] + #[doc(no_inline)] + pub use super::v1::*; + + #[unstable(feature = "prelude_next", issue = "none")] + #[doc(no_inline)] + pub use core::prelude::rust_future::*; +} |
