Skip to content

Commit 140bf94

Browse files
committed
fix last two tidy
1 parent 6b625b3 commit 140bf94

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/libcore/num/mod.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,8 @@ nonzero_integers! {
9797
NonZeroU16(u16); NonZeroI16(i16);
9898
NonZeroU32(u32); NonZeroI32(i32);
9999
NonZeroU64(u64); NonZeroI64(i64);
100-
NonZeroUsize(usize); NonZeroIsize(isize);
101-
}
102-
103-
nonzero_integers! {
104-
// Change this to `#[unstable(feature = "i128", issue = "35118")]`
105-
// if other NonZero* integer types are stabilizied before 128-bit integers
106-
#[unstable(feature = "nonzero", issue = "49137")]
107100
NonZeroU128(u128); NonZeroI128(i128);
101+
NonZeroUsize(usize); NonZeroIsize(isize);
108102
}
109103

110104
/// Provides intentionally-wrapped arithmetic on `T`.

src/libstd/num.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@ pub use core::num::Wrapping;
2424
#[unstable(feature = "nonzero", issue = "49137")]
2525
pub use core::num::{
2626
NonZeroU8, NonZeroI8, NonZeroU16, NonZeroI16, NonZeroU32, NonZeroI32,
27-
NonZeroU64, NonZeroI64, NonZeroUsize, NonZeroIsize,
27+
NonZeroU64, NonZeroI64, NonZeroU128, NonZeroI128, NonZeroUsize, NonZeroIsize,
2828
};
2929

30-
// Change this to `#[unstable(feature = "i128", issue = "35118")]`
31-
// if other NonZero* integer types are stabilizied before 128-bit integers
32-
#[unstable(feature = "nonzero", issue = "49137")]
33-
pub use core::num::{NonZeroU128, NonZeroI128};
34-
3530
#[cfg(test)] use fmt;
3631
#[cfg(test)] use ops::{Add, Sub, Mul, Div, Rem};
3732

0 commit comments

Comments
 (0)