Skip to content

Commit 57f8c67

Browse files
matthiaskrgrgitbot
authored and
gitbot
committed
Rollup merge of rust-lang#134272 - RalfJung:destabilize-rustc_encodable_decodable, r=oli-obk
Remove rustc_encodable_decodable feature This has been shown in future-compat reports since Rust 1.79 (rust-lang#116016), released June 2024. Let's see if crater still finds any issues. Part of rust-lang#134301. Cc ``@rust-lang/libs-api``
2 parents bf36b6d + 53520b0 commit 57f8c67

File tree

3 files changed

+0
-48
lines changed

3 files changed

+0
-48
lines changed

core/src/macros/mod.rs

-28
Original file line numberDiff line numberDiff line change
@@ -1831,32 +1831,4 @@ pub(crate) mod builtin {
18311831
pub macro deref($pat:pat) {
18321832
builtin # deref($pat)
18331833
}
1834-
1835-
/// Derive macro for `rustc-serialize`. Should not be used in new code.
1836-
#[rustc_builtin_macro]
1837-
#[unstable(
1838-
feature = "rustc_encodable_decodable",
1839-
issue = "none",
1840-
soft,
1841-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
1842-
)]
1843-
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
1844-
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
1845-
pub macro RustcDecodable($item:item) {
1846-
/* compiler built-in */
1847-
}
1848-
1849-
/// Derive macro for `rustc-serialize`. Should not be used in new code.
1850-
#[rustc_builtin_macro]
1851-
#[unstable(
1852-
feature = "rustc_encodable_decodable",
1853-
issue = "none",
1854-
soft,
1855-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
1856-
)]
1857-
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
1858-
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
1859-
pub macro RustcEncodable($item:item) {
1860-
/* compiler built-in */
1861-
}
18621834
}

core/src/prelude/mod.rs

-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ mod common;
1818
pub mod v1 {
1919
#[stable(feature = "rust1", since = "1.0.0")]
2020
pub use super::common::*;
21-
22-
// Do not `doc(inline)` these `doc(hidden)` items.
23-
#[unstable(
24-
feature = "rustc_encodable_decodable",
25-
issue = "none",
26-
soft,
27-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
28-
)]
29-
#[allow(deprecated)]
30-
pub use crate::macros::builtin::{RustcDecodable, RustcEncodable};
3121
}
3222

3323
/// The 2015 version of the core prelude.

std/src/prelude/mod.rs

-10
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,6 @@ mod common;
120120
pub mod v1 {
121121
#[stable(feature = "rust1", since = "1.0.0")]
122122
pub use super::common::*;
123-
124-
// Do not `doc(inline)` these `doc(hidden)` items.
125-
#[unstable(
126-
feature = "rustc_encodable_decodable",
127-
issue = "none",
128-
soft,
129-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
130-
)]
131-
#[allow(deprecated)]
132-
pub use core::prelude::v1::{RustcDecodable, RustcEncodable};
133123
}
134124

135125
/// The 2015 version of the prelude of The Rust Standard Library.

0 commit comments

Comments
 (0)