Skip to content

Commit

Permalink
fix last two tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Mar 26, 2018
1 parent 6b625b3 commit 140bf94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
8 changes: 1 addition & 7 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,8 @@ nonzero_integers! {
NonZeroU16(u16); NonZeroI16(i16);
NonZeroU32(u32); NonZeroI32(i32);
NonZeroU64(u64); NonZeroI64(i64);
NonZeroUsize(usize); NonZeroIsize(isize);
}

nonzero_integers! {
// Change this to `#[unstable(feature = "i128", issue = "35118")]`
// if other NonZero* integer types are stabilizied before 128-bit integers
#[unstable(feature = "nonzero", issue = "49137")]
NonZeroU128(u128); NonZeroI128(i128);
NonZeroUsize(usize); NonZeroIsize(isize);
}

/// Provides intentionally-wrapped arithmetic on `T`.
Expand Down
7 changes: 1 addition & 6 deletions src/libstd/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ pub use core::num::Wrapping;
#[unstable(feature = "nonzero", issue = "49137")]
pub use core::num::{
NonZeroU8, NonZeroI8, NonZeroU16, NonZeroI16, NonZeroU32, NonZeroI32,
NonZeroU64, NonZeroI64, NonZeroUsize, NonZeroIsize,
NonZeroU64, NonZeroI64, NonZeroU128, NonZeroI128, NonZeroUsize, NonZeroIsize,
};

// Change this to `#[unstable(feature = "i128", issue = "35118")]`
// if other NonZero* integer types are stabilizied before 128-bit integers
#[unstable(feature = "nonzero", issue = "49137")]
pub use core::num::{NonZeroU128, NonZeroI128};

#[cfg(test)] use fmt;
#[cfg(test)] use ops::{Add, Sub, Mul, Div, Rem};

Expand Down

0 comments on commit 140bf94

Please sign in to comment.