File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/test/ui/stability-attribute Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1537,7 +1537,7 @@ pub(crate) mod builtin {
15371537 /// Unstable implementation detail of the `rustc` compiler, do not use.
15381538 #[ rustc_builtin_macro]
15391539 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1540- #[ allow_internal_unstable( core_intrinsics, libstd_sys_internals) ]
1540+ #[ allow_internal_unstable( core_intrinsics, libstd_sys_internals, rt ) ]
15411541 #[ deprecated( since = "1.52.0" , note = "rustc-serialize is deprecated and no longer supported" ) ]
15421542 #[ doc( hidden) ] // While technically stable, using it is unstable, and deprecated. Hide it.
15431543 pub macro RustcDecodable ( $item: item) {
@@ -1547,7 +1547,7 @@ pub(crate) mod builtin {
15471547 /// Unstable implementation detail of the `rustc` compiler, do not use.
15481548 #[ rustc_builtin_macro]
15491549 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1550- #[ allow_internal_unstable( core_intrinsics) ]
1550+ #[ allow_internal_unstable( core_intrinsics, rt ) ]
15511551 #[ deprecated( since = "1.52.0" , note = "rustc-serialize is deprecated and no longer supported" ) ]
15521552 #[ doc( hidden) ] // While technically stable, using it is unstable, and deprecated. Hide it.
15531553 pub macro RustcEncodable ( $item: item) {
Original file line number Diff line number Diff line change 1+ // edition:2018
2+ #![ allow( deprecated) ]
3+ extern crate rustc_serialize;
4+
5+ #[ derive( RustcDecodable , RustcEncodable ) ]
6+ struct ArbitraryTestType ( ( ) ) ;
7+
8+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments