@@ -110,8 +110,8 @@ impl_zeroable_primitive!(
110
110
pub struct NonZero < T : ZeroablePrimitive > ( T :: NonZeroInner ) ;
111
111
112
112
macro_rules! impl_nonzero_fmt {
113
- ( $Trait: ident) => {
114
- #[ stable( feature = "nonzero" , since = "1.28.0" ) ]
113
+ ( $Trait: ident, $Feature : literal , $Since : literal ) => {
114
+ #[ stable( feature = $Feature , since = $Since ) ]
115
115
impl <T > fmt:: $Trait for NonZero <T >
116
116
where
117
117
T : ZeroablePrimitive + fmt:: $Trait,
@@ -124,14 +124,14 @@ macro_rules! impl_nonzero_fmt {
124
124
} ;
125
125
}
126
126
127
- impl_nonzero_fmt ! ( Debug ) ;
128
- impl_nonzero_fmt ! ( Display ) ;
129
- impl_nonzero_fmt ! ( Binary ) ;
130
- impl_nonzero_fmt ! ( Octal ) ;
131
- impl_nonzero_fmt ! ( LowerHex ) ;
132
- impl_nonzero_fmt ! ( UpperHex ) ;
133
- impl_nonzero_fmt ! ( LowerExp ) ;
134
- impl_nonzero_fmt ! ( UpperExp ) ;
127
+ impl_nonzero_fmt ! ( Debug , "nonzero" , "1.28.0" ) ;
128
+ impl_nonzero_fmt ! ( Display , "nonzero" , "1.28.0" ) ;
129
+ impl_nonzero_fmt ! ( Binary , "nonzero" , "1.28.0" ) ;
130
+ impl_nonzero_fmt ! ( Octal , "nonzero" , "1.28.0" ) ;
131
+ impl_nonzero_fmt ! ( LowerHex , "nonzero" , "1.28.0" ) ;
132
+ impl_nonzero_fmt ! ( UpperHex , "nonzero" , "1.28.0" ) ;
133
+ impl_nonzero_fmt ! ( LowerExp , "nonzero_fmt_exp" , "CURRENT_RUSTC_VERSION" ) ;
134
+ impl_nonzero_fmt ! ( UpperExp , "nonzero_fmt_exp" , "CURRENT_RUSTC_VERSION" ) ;
135
135
136
136
macro_rules! impl_nonzero_auto_trait {
137
137
( unsafe $Trait: ident) => {
0 commit comments