@@ -24,7 +24,6 @@ macro_rules! impl_nonzero_fmt {
24
24
( #[ $stability: meta] ( $( $Trait: ident ) ,+ ) for $Ty: ident ) => {
25
25
$(
26
26
#[ $stability]
27
- #[ allow( deprecated) ]
28
27
impl fmt:: $Trait for $Ty {
29
28
#[ inline]
30
29
fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
@@ -36,7 +35,7 @@ macro_rules! impl_nonzero_fmt {
36
35
}
37
36
38
37
macro_rules! nonzero_integers {
39
- ( #[ $stability: meta] # [ $deprecation : meta ] $( $Ty: ident( $Int: ty) ; ) + ) => {
38
+ ( #[ $stability: meta] $( $Ty: ident( $Int: ty) ; ) + ) => {
40
39
$(
41
40
/// An integer that is known not to equal zero.
42
41
///
@@ -48,7 +47,6 @@ macro_rules! nonzero_integers {
48
47
/// assert_eq!(size_of::<Option<std::num::NonZeroU32>>(), size_of::<u32>());
49
48
/// ```
50
49
#[ $stability]
51
- #[ $deprecation]
52
50
#[ derive( Copy , Clone , Eq , PartialEq , Ord , PartialOrd , Hash ) ]
53
51
pub struct $Ty( NonZero <$Int>) ;
54
52
@@ -94,7 +92,6 @@ macro_rules! nonzero_integers {
94
92
95
93
nonzero_integers ! {
96
94
#[ unstable( feature = "nonzero" , issue = "49137" ) ]
97
- #[ allow( deprecated) ] // Redundant, works around "error: inconsistent lockstep iteration"
98
95
NonZeroU8 ( u8 ) ;
99
96
NonZeroU16 ( u16 ) ;
100
97
NonZeroU32 ( u32 ) ;
@@ -103,19 +100,6 @@ nonzero_integers! {
103
100
NonZeroUsize ( usize ) ;
104
101
}
105
102
106
- nonzero_integers ! {
107
- #[ unstable( feature = "nonzero" , issue = "49137" ) ]
108
- #[ rustc_deprecated( since = "1.26.0" , reason = "\
109
- signed non-zero integers are considered for removal due to lack of known use cases. \
110
- If you’re using them, please comment on https://github.com/rust-lang/rust/issues/49137") ]
111
- NonZeroI8 ( i8 ) ;
112
- NonZeroI16 ( i16 ) ;
113
- NonZeroI32 ( i32 ) ;
114
- NonZeroI64 ( i64 ) ;
115
- NonZeroI128 ( i128 ) ;
116
- NonZeroIsize ( isize ) ;
117
- }
118
-
119
103
/// Provides intentionally-wrapped arithmetic on `T`.
120
104
///
121
105
/// Operations like `+` on `u32` values is intended to never overflow,
0 commit comments