|
6 | 6 |
|
7 | 7 | #![stable(feature = "core_prelude", since = "1.4.0")]
|
8 | 8 |
|
9 |
| -pub mod v1; |
| 9 | +mod common; |
| 10 | + |
| 11 | +/// The first version of the prelude of The Rust Standard Library. |
| 12 | +/// |
| 13 | +/// See the [module-level documentation](self) for more. |
| 14 | +#[stable(feature = "rust1", since = "1.0.0")] |
| 15 | +pub mod v1 { |
| 16 | + #[stable(feature = "rust1", since = "1.0.0")] |
| 17 | + pub use super::common::*; |
| 18 | + |
| 19 | + // Do not `doc(inline)` these `doc(hidden)` items. |
| 20 | + #[unstable( |
| 21 | + feature = "rustc_encodable_decodable", |
| 22 | + issue = "none", |
| 23 | + soft, |
| 24 | + reason = "unstable implementation detail of the `rustc` compiler, do not use" |
| 25 | + )] |
| 26 | + #[allow(deprecated)] |
| 27 | + pub use crate::macros::builtin::{RustcDecodable, RustcEncodable}; |
| 28 | +} |
10 | 29 |
|
11 | 30 | /// The 2015 version of the core prelude.
|
12 | 31 | ///
|
@@ -46,12 +65,15 @@ pub mod rust_2021 {
|
46 | 65 | pub use crate::convert::{TryFrom, TryInto};
|
47 | 66 | }
|
48 | 67 |
|
49 |
| -/// The 2024 edition of the core prelude. |
| 68 | +/// The 2024 version of the core prelude. |
50 | 69 | ///
|
51 | 70 | /// See the [module-level documentation](self) for more.
|
52 | 71 | #[unstable(feature = "prelude_2024", issue = "none")]
|
53 | 72 | pub mod rust_2024 {
|
54 |
| - #[unstable(feature = "prelude_2024", issue = "none")] |
| 73 | + #[stable(feature = "rust1", since = "1.0.0")] |
| 74 | + pub use super::common::*; |
| 75 | + |
| 76 | + #[stable(feature = "prelude_2021", since = "1.55.0")] |
55 | 77 | #[doc(no_inline)]
|
56 |
| - pub use super::rust_2021::*; |
| 78 | + pub use crate::convert::{TryFrom, TryInto}; |
57 | 79 | }
|
0 commit comments