Skip to content

Commit

Permalink
remove Rustc{En,De}codable from library and compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and gitbot committed Feb 20, 2025
1 parent c7a5b34 commit 2a5ceb7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 44 deletions.
26 changes: 0 additions & 26 deletions core/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1831,30 +1831,4 @@ pub(crate) mod builtin {
pub macro deref($pat:pat) {
builtin # deref($pat)
}

/// Derive macro for `rustc-serialize`. Should not be used in new code.
#[rustc_builtin_macro]
#[unstable(
feature = "rustc_encodable_decodable",
issue = "134301",
reason = "derive macro for `rustc-serialize`; should not be used in new code"
)]
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
pub macro RustcDecodable($item:item) {
/* compiler built-in */
}

/// Derive macro for `rustc-serialize`. Should not be used in new code.
#[rustc_builtin_macro]
#[unstable(
feature = "rustc_encodable_decodable",
issue = "134301",
reason = "derive macro for `rustc-serialize`; should not be used in new code"
)]
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
pub macro RustcEncodable($item:item) {
/* compiler built-in */
}
}
9 changes: 0 additions & 9 deletions core/src/prelude/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ mod common;
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 = "134301",
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.
Expand Down
9 changes: 0 additions & 9 deletions std/src/prelude/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,6 @@ mod common;
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 = "134301",
reason = "derive macro for `rustc-serialize`; should not be used in new code"
)]
#[allow(deprecated)]
pub use core::prelude::v1::{RustcDecodable, RustcEncodable};
}

/// The 2015 version of the prelude of The Rust Standard Library.
Expand Down

0 comments on commit 2a5ceb7

Please sign in to comment.