File tree 2 files changed +10
-2
lines changed
src/test/ui/stability-attribute
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 {
1537
1537
/// Unstable implementation detail of the `rustc` compiler, do not use.
1538
1538
#[ rustc_builtin_macro]
1539
1539
#[ 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 ) ]
1541
1541
#[ deprecated( since = "1.52.0" , note = "rustc-serialize is deprecated and no longer supported" ) ]
1542
1542
#[ doc( hidden) ] // While technically stable, using it is unstable, and deprecated. Hide it.
1543
1543
pub macro RustcDecodable ( $item: item) {
@@ -1547,7 +1547,7 @@ pub(crate) mod builtin {
1547
1547
/// Unstable implementation detail of the `rustc` compiler, do not use.
1548
1548
#[ rustc_builtin_macro]
1549
1549
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1550
- #[ allow_internal_unstable( core_intrinsics) ]
1550
+ #[ allow_internal_unstable( core_intrinsics, rt ) ]
1551
1551
#[ deprecated( since = "1.52.0" , note = "rustc-serialize is deprecated and no longer supported" ) ]
1552
1552
#[ doc( hidden) ] // While technically stable, using it is unstable, and deprecated. Hide it.
1553
1553
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