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