Skip to content

Commit 2a5ceb7

Browse files
RalfJunggitbot
authored and
gitbot
committed
remove Rustc{En,De}codable from library and compiler
1 parent c7a5b34 commit 2a5ceb7

File tree

3 files changed

+0
-44
lines changed

3 files changed

+0
-44
lines changed

core/src/macros/mod.rs

-26
Original file line numberDiff line numberDiff line change
@@ -1831,30 +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 = "134301",
1840-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
1841-
)]
1842-
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
1843-
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
1844-
pub macro RustcDecodable($item:item) {
1845-
/* compiler built-in */
1846-
}
1847-
1848-
/// Derive macro for `rustc-serialize`. Should not be used in new code.
1849-
#[rustc_builtin_macro]
1850-
#[unstable(
1851-
feature = "rustc_encodable_decodable",
1852-
issue = "134301",
1853-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
1854-
)]
1855-
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
1856-
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
1857-
pub macro RustcEncodable($item:item) {
1858-
/* compiler built-in */
1859-
}
18601834
}

core/src/prelude/mod.rs

-9
Original file line numberDiff line numberDiff line change
@@ -18,15 +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 = "134301",
26-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
27-
)]
28-
#[allow(deprecated)]
29-
pub use crate::macros::builtin::{RustcDecodable, RustcEncodable};
3021
}
3122

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

std/src/prelude/mod.rs

-9
Original file line numberDiff line numberDiff line change
@@ -120,15 +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 = "134301",
128-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
129-
)]
130-
#[allow(deprecated)]
131-
pub use core::prelude::v1::{RustcDecodable, RustcEncodable};
132123
}
133124

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

0 commit comments

Comments
 (0)