|
25 | 25 | //! |
26 | 26 | //! # Prelude contents |
27 | 27 | //! |
| 28 | +//! The items included in the prelude depend on the edition of the crate. |
28 | 29 | //! The first version of the prelude is used in Rust 2015 and Rust 2018, |
29 | 30 | //! and lives in [`std::prelude::v1`]. |
30 | 31 | //! [`std::prelude::rust_2015`] and [`std::prelude::rust_2018`] re-export this prelude. |
|
67 | 68 | //! The prelude used in Rust 2021, [`std::prelude::rust_2021`], includes all of the above, |
68 | 69 | //! and in addition re-exports: |
69 | 70 | //! |
70 | | -//! * <code>[std::convert]::{[TryFrom], [TryInto]}</code>, |
| 71 | +//! * <code>[std::convert]::{[TryFrom], [TryInto]}</code>. |
71 | 72 | //! * <code>[std::iter]::[FromIterator]</code>. |
72 | 73 | //! |
| 74 | +//! The prelude used in Rust 2024, [`std::prelude::rust_2024`], includes all of the above, |
| 75 | +//! and in addition re-exports: |
| 76 | +//! |
| 77 | +//! * <code>[std::future]::{[Future], [IntoFuture]}</code>. |
| 78 | +//! |
73 | 79 | //! [std::borrow]: crate::borrow |
74 | 80 | //! [std::boxed]: crate::boxed |
75 | 81 | //! [std::clone]: crate::clone |
76 | 82 | //! [std::cmp]: crate::cmp |
77 | 83 | //! [std::convert]: crate::convert |
78 | 84 | //! [std::default]: crate::default |
| 85 | +//! [std::future]: crate::future |
79 | 86 | //! [std::iter]: crate::iter |
80 | 87 | //! [std::marker]: crate::marker |
81 | 88 | //! [std::mem]: crate::mem |
|
85 | 92 | //! [`std::prelude::rust_2015`]: rust_2015 |
86 | 93 | //! [`std::prelude::rust_2018`]: rust_2018 |
87 | 94 | //! [`std::prelude::rust_2021`]: rust_2021 |
| 95 | +//! [`std::prelude::rust_2024`]: rust_2024 |
88 | 96 | //! [std::result]: crate::result |
89 | 97 | //! [std::slice]: crate::slice |
90 | 98 | //! [std::string]: crate::string |
|
94 | 102 | //! [book-dtor]: ../../book/ch15-03-drop.html |
95 | 103 | //! [book-enums]: ../../book/ch06-01-defining-an-enum.html |
96 | 104 | //! [book-iter]: ../../book/ch13-02-iterators.html |
| 105 | +//! [Future]: crate::future::Future |
| 106 | +//! [IntoFuture]: crate::future::IntoFuture |
97 | 107 |
|
98 | 108 | // No formatting: this file is nothing but re-exports, and their order is worth preserving. |
99 | 109 | #![cfg_attr(rustfmt, rustfmt::skip)] |
@@ -158,12 +168,12 @@ pub mod rust_2021 { |
158 | 168 | /// The 2024 version of the prelude of The Rust Standard Library. |
159 | 169 | /// |
160 | 170 | /// See the [module-level documentation](self) for more. |
161 | | -#[unstable(feature = "prelude_2024", issue = "121042")] |
| 171 | +#[stable(feature = "prelude_2024", since = "CURRENT_RUSTC_VERSION")] |
162 | 172 | pub mod rust_2024 { |
163 | 173 | #[stable(feature = "rust1", since = "1.0.0")] |
164 | 174 | pub use super::common::*; |
165 | 175 |
|
166 | | - #[unstable(feature = "prelude_2024", issue = "121042")] |
| 176 | + #[stable(feature = "prelude_2024", since = "CURRENT_RUSTC_VERSION")] |
167 | 177 | #[doc(no_inline)] |
168 | 178 | pub use core::prelude::rust_2024::*; |
169 | 179 | } |
0 commit comments