11use std:: num:: NonZero ;
22
3- use rustc_macros:: { Decodable , Encodable , HashStable_Generic , PrintAttribute } ;
3+ use rustc_macros:: { BlobDecodable , Decodable , Encodable , HashStable_Generic , PrintAttribute } ;
44use rustc_span:: { ErrorGuaranteed , Symbol , sym} ;
55
66use crate :: RustcVersion ;
@@ -21,7 +21,7 @@ pub const VERSION_PLACEHOLDER: &str = concat!("CURRENT_RUSTC_VERSIO", "N");
2121///
2222/// - `#[stable]`
2323/// - `#[unstable]`
24- #[ derive( Encodable , Decodable , Copy , Clone , Debug , PartialEq , Eq , Hash ) ]
24+ #[ derive( Encodable , BlobDecodable , Copy , Clone , Debug , PartialEq , Eq , Hash ) ]
2525#[ derive( HashStable_Generic , PrintAttribute ) ]
2626pub struct Stability {
2727 pub level : StabilityLevel ,
@@ -103,7 +103,7 @@ impl PartialConstStability {
103103}
104104
105105/// The available stability levels.
106- #[ derive( Encodable , Decodable , PartialEq , Copy , Clone , Debug , Eq , Hash ) ]
106+ #[ derive( Encodable , BlobDecodable , PartialEq , Copy , Clone , Debug , Eq , Hash ) ]
107107#[ derive( HashStable_Generic , PrintAttribute ) ]
108108pub enum StabilityLevel {
109109 /// `#[unstable]`
@@ -146,7 +146,7 @@ pub enum StabilityLevel {
146146}
147147
148148/// Rust release in which a feature is stabilized.
149- #[ derive( Encodable , Decodable , PartialEq , Copy , Clone , Debug , Eq , PartialOrd , Ord , Hash ) ]
149+ #[ derive( Encodable , BlobDecodable , PartialEq , Copy , Clone , Debug , Eq , PartialOrd , Ord , Hash ) ]
150150#[ derive( HashStable_Generic , PrintAttribute ) ]
151151pub enum StableSince {
152152 /// also stores the original symbol for printing
@@ -172,7 +172,7 @@ impl StabilityLevel {
172172 }
173173}
174174
175- #[ derive( Encodable , Decodable , PartialEq , Copy , Clone , Debug , Eq , Hash ) ]
175+ #[ derive( Encodable , BlobDecodable , PartialEq , Copy , Clone , Debug , Eq , Hash ) ]
176176#[ derive( HashStable_Generic , PrintAttribute ) ]
177177pub enum UnstableReason {
178178 None ,
0 commit comments