1414use std:: fmt;
1515
1616#[ cfg( feature = "nightly" ) ]
17- use rustc_macros:: { Decodable_NoContext , Encodable_NoContext , HashStable_NoContext } ;
17+ use rustc_macros:: { Decodable_NoContext , Encodable_NoContext , HashStable } ;
1818#[ cfg( feature = "nightly" ) ]
1919use rustc_span:: { Symbol , sym} ;
2020
2121pub mod visit;
2222
2323#[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
24- #[ cfg_attr(
25- feature = "nightly" ,
26- derive( Encodable_NoContext , Decodable_NoContext , HashStable_NoContext )
27- ) ]
24+ #[ cfg_attr( feature = "nightly" , derive( Encodable_NoContext , Decodable_NoContext , HashStable ) ) ]
2825pub enum IntTy {
2926 Isize ,
3027 I8 ,
@@ -100,10 +97,7 @@ impl fmt::Debug for IntTy {
10097}
10198
10299#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , Copy ) ]
103- #[ cfg_attr(
104- feature = "nightly" ,
105- derive( Encodable_NoContext , Decodable_NoContext , HashStable_NoContext )
106- ) ]
100+ #[ cfg_attr( feature = "nightly" , derive( Encodable_NoContext , Decodable_NoContext , HashStable ) ) ]
107101pub enum UintTy {
108102 Usize ,
109103 U8 ,
@@ -179,10 +173,7 @@ impl fmt::Debug for UintTy {
179173}
180174
181175#[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
182- #[ cfg_attr(
183- feature = "nightly" ,
184- derive( Encodable_NoContext , Decodable_NoContext , HashStable_NoContext )
185- ) ]
176+ #[ cfg_attr( feature = "nightly" , derive( Encodable_NoContext , Decodable_NoContext , HashStable ) ) ]
186177pub enum FloatTy {
187178 F16 ,
188179 F32 ,
@@ -229,10 +220,7 @@ impl fmt::Debug for FloatTy {
229220/// The movability of a coroutine / closure literal:
230221/// whether a coroutine contains self-references, causing it to be `!Unpin`.
231222#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , Debug , Copy ) ]
232- #[ cfg_attr(
233- feature = "nightly" ,
234- derive( Encodable_NoContext , Decodable_NoContext , HashStable_NoContext )
235- ) ]
223+ #[ cfg_attr( feature = "nightly" , derive( Encodable_NoContext , Decodable_NoContext , HashStable ) ) ]
236224pub enum Movability {
237225 /// May contain self-references, `!Unpin`.
238226 Static ,
@@ -241,10 +229,7 @@ pub enum Movability {
241229}
242230
243231#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , Debug , Copy ) ]
244- #[ cfg_attr(
245- feature = "nightly" ,
246- derive( Encodable_NoContext , Decodable_NoContext , HashStable_NoContext )
247- ) ]
232+ #[ cfg_attr( feature = "nightly" , derive( Encodable_NoContext , Decodable_NoContext , HashStable ) ) ]
248233pub enum Mutability {
249234 // N.B. Order is deliberate, so that Not < Mut
250235 Not ,
@@ -303,10 +288,7 @@ impl Mutability {
303288}
304289
305290#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , Debug , Copy ) ]
306- #[ cfg_attr(
307- feature = "nightly" ,
308- derive( Encodable_NoContext , Decodable_NoContext , HashStable_NoContext )
309- ) ]
291+ #[ cfg_attr( feature = "nightly" , derive( Encodable_NoContext , Decodable_NoContext , HashStable ) ) ]
310292pub enum Pinnedness {
311293 Not ,
312294 Pinned ,
0 commit comments