Skip to content

Commit 53520b0

Browse files
RalfJunggitbot
authored and
gitbot
committed
remove Rustc{En,De}codable from library and compiler
1 parent 4daacfd commit 53520b0

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
@@ -1768,30 +1768,4 @@ pub(crate) mod builtin {
17681768
pub macro deref($pat:pat) {
17691769
builtin # deref($pat)
17701770
}
1771-
1772-
/// Derive macro for `rustc-serialize`. Should not be used in new code.
1773-
#[rustc_builtin_macro]
1774-
#[unstable(
1775-
feature = "rustc_encodable_decodable",
1776-
issue = "134301",
1777-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
1778-
)]
1779-
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
1780-
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
1781-
pub macro RustcDecodable($item:item) {
1782-
/* compiler built-in */
1783-
}
1784-
1785-
/// Derive macro for `rustc-serialize`. Should not be used in new code.
1786-
#[rustc_builtin_macro]
1787-
#[unstable(
1788-
feature = "rustc_encodable_decodable",
1789-
issue = "134301",
1790-
reason = "derive macro for `rustc-serialize`; should not be used in new code"
1791-
)]
1792-
#[deprecated(since = "1.52.0", note = "rustc-serialize is deprecated and no longer supported")]
1793-
#[doc(hidden)] // While technically stable, using it is unstable, and deprecated. Hide it.
1794-
pub macro RustcEncodable($item:item) {
1795-
/* compiler built-in */
1796-
}
17971771
}

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)