Remove RustcEncodable/Decodable from 2024 prelude
This commit is contained in:
committed by
David Tolnay
parent
2624e9183d
commit
fbf21c5763
@@ -6,7 +6,26 @@
|
||||
|
||||
#![stable(feature = "core_prelude", since = "1.4.0")]
|
||||
|
||||
pub mod v1;
|
||||
mod common;
|
||||
|
||||
/// The first version of the prelude of The Rust Standard Library.
|
||||
///
|
||||
/// See the [module-level documentation](self) for more.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub mod v1 {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use super::common::*;
|
||||
|
||||
// Do not `doc(inline)` these `doc(hidden)` items.
|
||||
#[unstable(
|
||||
feature = "rustc_encodable_decodable",
|
||||
issue = "none",
|
||||
soft,
|
||||
reason = "derive macro for `rustc-serialize`; should not be used in new code"
|
||||
)]
|
||||
#[allow(deprecated)]
|
||||
pub use crate::macros::builtin::{RustcDecodable, RustcEncodable};
|
||||
}
|
||||
|
||||
/// The 2015 version of the core prelude.
|
||||
///
|
||||
@@ -46,14 +65,21 @@ pub mod rust_2021 {
|
||||
pub use crate::convert::{TryFrom, TryInto};
|
||||
}
|
||||
|
||||
/// The 2024 edition of the core prelude.
|
||||
/// The 2024 version of the core prelude.
|
||||
///
|
||||
/// See the [module-level documentation](self) for more.
|
||||
#[unstable(feature = "prelude_2024", issue = "121042")]
|
||||
pub mod rust_2024 {
|
||||
#[unstable(feature = "prelude_2024", issue = "121042")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use super::common::*;
|
||||
|
||||
#[stable(feature = "prelude_2021", since = "1.55.0")]
|
||||
#[doc(no_inline)]
|
||||
pub use super::rust_2021::*;
|
||||
pub use crate::iter::FromIterator;
|
||||
|
||||
#[stable(feature = "prelude_2021", since = "1.55.0")]
|
||||
#[doc(no_inline)]
|
||||
pub use crate::convert::{TryFrom, TryInto};
|
||||
|
||||
#[unstable(feature = "prelude_2024", issue = "121042")]
|
||||
#[doc(no_inline)]
|
||||
|
||||
Reference in New Issue
Block a user