@@ -16,7 +16,7 @@ use rustc_data_structures::stable_hasher::StableOrd;
1616#[ cfg( feature = "nightly" ) ]
1717use rustc_macros:: HashStable_Generic ;
1818#[ cfg( feature = "nightly" ) ]
19- use rustc_macros:: { Decodable , Encodable } ;
19+ use rustc_macros:: { Decodable_Generic , Encodable_Generic } ;
2020#[ cfg( feature = "nightly" ) ]
2121use std:: iter:: Step ;
2222
@@ -30,7 +30,7 @@ pub use layout::LayoutCalculator;
3030pub trait HashStableContext { }
3131
3232#[ derive( Clone , Copy , PartialEq , Eq , Default ) ]
33- #[ cfg_attr( feature = "nightly" , derive( Encodable , Decodable , HashStable_Generic ) ) ]
33+ #[ cfg_attr( feature = "nightly" , derive( Encodable_Generic , Decodable_Generic , HashStable_Generic ) ) ]
3434pub struct ReprFlags ( u8 ) ;
3535
3636bitflags ! {
@@ -52,7 +52,7 @@ bitflags! {
5252rustc_data_structures:: external_bitflags_debug! { ReprFlags }
5353
5454#[ derive( Copy , Clone , Debug , Eq , PartialEq ) ]
55- #[ cfg_attr( feature = "nightly" , derive( Encodable , Decodable , HashStable_Generic ) ) ]
55+ #[ cfg_attr( feature = "nightly" , derive( Encodable_Generic , Decodable_Generic , HashStable_Generic ) ) ]
5656pub enum IntegerType {
5757 /// Pointer-sized integer type, i.e. `isize` and `usize`. The field shows signedness, e.g.
5858 /// `Pointer(true)` means `isize`.
@@ -73,7 +73,7 @@ impl IntegerType {
7373
7474/// Represents the repr options provided by the user.
7575#[ derive( Copy , Clone , Debug , Eq , PartialEq , Default ) ]
76- #[ cfg_attr( feature = "nightly" , derive( Encodable , Decodable , HashStable_Generic ) ) ]
76+ #[ cfg_attr( feature = "nightly" , derive( Encodable_Generic , Decodable_Generic , HashStable_Generic ) ) ]
7777pub struct ReprOptions {
7878 pub int : Option < IntegerType > ,
7979 pub align : Option < Align > ,
@@ -412,7 +412,7 @@ impl FromStr for Endian {
412412
413413/// Size of a type in bytes.
414414#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
415- #[ cfg_attr( feature = "nightly" , derive( Encodable , Decodable , HashStable_Generic ) ) ]
415+ #[ cfg_attr( feature = "nightly" , derive( Encodable_Generic , Decodable_Generic , HashStable_Generic ) ) ]
416416pub struct Size {
417417 raw : u64 ,
418418}
@@ -636,7 +636,7 @@ impl Step for Size {
636636
637637/// Alignment of a type in bytes (always a power of two).
638638#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
639- #[ cfg_attr( feature = "nightly" , derive( Encodable , Decodable , HashStable_Generic ) ) ]
639+ #[ cfg_attr( feature = "nightly" , derive( Encodable_Generic , Decodable_Generic , HashStable_Generic ) ) ]
640640pub struct Align {
641641 pow2 : u8 ,
642642}
@@ -777,7 +777,7 @@ impl AbiAndPrefAlign {
777777
778778/// Integers, also used for enum discriminants.
779779#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash , Debug ) ]
780- #[ cfg_attr( feature = "nightly" , derive( Encodable , Decodable , HashStable_Generic ) ) ]
780+ #[ cfg_attr( feature = "nightly" , derive( Encodable_Generic , Decodable_Generic , HashStable_Generic ) ) ]
781781pub enum Integer {
782782 I8 ,
783783 I16 ,
0 commit comments