@@ -16,7 +16,7 @@ use rustc_data_structures::stable_hasher::StableOrd;
16
16
#[ cfg( feature = "nightly" ) ]
17
17
use rustc_macros:: HashStable_Generic ;
18
18
#[ cfg( feature = "nightly" ) ]
19
- use rustc_macros:: { Decodable , Encodable } ;
19
+ use rustc_macros:: { Decodable_Generic , Encodable_Generic } ;
20
20
#[ cfg( feature = "nightly" ) ]
21
21
use std:: iter:: Step ;
22
22
@@ -30,7 +30,7 @@ pub use layout::LayoutCalculator;
30
30
pub trait HashStableContext { }
31
31
32
32
#[ 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 ) ) ]
34
34
pub struct ReprFlags ( u8 ) ;
35
35
36
36
bitflags ! {
@@ -52,7 +52,7 @@ bitflags! {
52
52
rustc_data_structures:: external_bitflags_debug! { ReprFlags }
53
53
54
54
#[ 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 ) ) ]
56
56
pub enum IntegerType {
57
57
/// Pointer-sized integer type, i.e. `isize` and `usize`. The field shows signedness, e.g.
58
58
/// `Pointer(true)` means `isize`.
@@ -73,7 +73,7 @@ impl IntegerType {
73
73
74
74
/// Represents the repr options provided by the user.
75
75
#[ 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 ) ) ]
77
77
pub struct ReprOptions {
78
78
pub int : Option < IntegerType > ,
79
79
pub align : Option < Align > ,
@@ -412,7 +412,7 @@ impl FromStr for Endian {
412
412
413
413
/// Size of a type in bytes.
414
414
#[ 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 ) ) ]
416
416
pub struct Size {
417
417
raw : u64 ,
418
418
}
@@ -636,7 +636,7 @@ impl Step for Size {
636
636
637
637
/// Alignment of a type in bytes (always a power of two).
638
638
#[ 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 ) ) ]
640
640
pub struct Align {
641
641
pow2 : u8 ,
642
642
}
@@ -777,7 +777,7 @@ impl AbiAndPrefAlign {
777
777
778
778
/// Integers, also used for enum discriminants.
779
779
#[ 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 ) ) ]
781
781
pub enum Integer {
782
782
I8 ,
783
783
I16 ,
0 commit comments