add rt flag to allowed internal unstable for RustcEncodable/Decodable

This commit is contained in:
Jane Lusby 2022-06-13 15:05:19 -07:00 committed by Jane Losare-Lusby
parent b55453dbad
commit 0715616b51
2 changed files with 10 additions and 2 deletions

View File

@ -1537,7 +1537,7 @@ macro_rules! trace_macros {
/// Unstable implementation detail of the `rustc` compiler, do not use.
#[rustc_builtin_macro]
#[stable(feature = "rust1", since = "1.0.0")]
#[allow_internal_unstable(core_intrinsics, libstd_sys_internals)]
#[allow_internal_unstable(core_intrinsics, libstd_sys_internals, rt)]
#[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) {
@ -1547,7 +1547,7 @@ macro_rules! trace_macros {
/// Unstable implementation detail of the `rustc` compiler, do not use.
#[rustc_builtin_macro]
#[stable(feature = "rust1", since = "1.0.0")]
#[allow_internal_unstable(core_intrinsics)]
#[allow_internal_unstable(core_intrinsics, rt)]
#[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) {

View File

@ -0,0 +1,8 @@
// edition:2018
#![allow(deprecated)]
extern crate rustc_serialize;
#[derive(RustcDecodable, RustcEncodable)]
struct ArbitraryTestType(());
fn main() {}