@@ -110,8 +110,8 @@ impl_zeroable_primitive!(
110110pub struct NonZero < T : ZeroablePrimitive > ( T :: NonZeroInner ) ;
111111
112112macro_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 ) ]
115115 impl <T > fmt:: $Trait for NonZero <T >
116116 where
117117 T : ZeroablePrimitive + fmt:: $Trait,
@@ -124,14 +124,14 @@ macro_rules! impl_nonzero_fmt {
124124 } ;
125125}
126126
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" ) ;
135135
136136macro_rules! impl_nonzero_auto_trait {
137137 ( unsafe $Trait: ident) => {
0 commit comments