Skip to content

Commit a23f685

Browse files
committed
num::NonZero* types now have their own tracking issue: #49137
Fixes #27730
1 parent 73c0537 commit a23f685

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/libcore/nonzero.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
// except according to those terms.
1010

1111
//! Exposes the NonZero lang item which provides optimization hints.
12-
#![unstable(feature = "nonzero",
13-
reason = "deprecated",
14-
issue = "27730")]
12+
#![unstable(feature = "nonzero", reason = "deprecated", issue = "49137")]
1513
#![rustc_deprecated(reason = "use `std::ptr::NonNull` or `std::num::NonZero*` instead",
1614
since = "1.26.0")]
1715
#![allow(deprecated)]
@@ -70,9 +68,6 @@ pub struct NonZero<T: Zeroable>(pub(crate) T);
7068
impl<T: Zeroable> NonZero<T> {
7169
/// Creates an instance of NonZero with the provided value.
7270
/// You must indeed ensure that the value is actually "non-zero".
73-
#[unstable(feature = "nonzero",
74-
reason = "needs an RFC to flesh out the design",
75-
issue = "27730")]
7671
#[inline]
7772
pub const unsafe fn new_unchecked(inner: T) -> Self {
7873
NonZero(inner)

src/libcore/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ macro_rules! nonzero_integers {
9292
}
9393

9494
nonzero_integers! {
95-
#[unstable(feature = "nonzero", issue = "27730")]
95+
#[unstable(feature = "nonzero", issue = "49137")]
9696
NonZeroU8(u8); NonZeroI8(i8);
9797
NonZeroU16(u16); NonZeroI16(i16);
9898
NonZeroU32(u32); NonZeroI32(i32);
@@ -103,7 +103,7 @@ nonzero_integers! {
103103
nonzero_integers! {
104104
// Change this to `#[unstable(feature = "i128", issue = "35118")]`
105105
// if other NonZero* integer types are stabilizied before 128-bit integers
106-
#[unstable(feature = "nonzero", issue = "27730")]
106+
#[unstable(feature = "nonzero", issue = "49137")]
107107
NonZeroU128(u128); NonZeroI128(i128);
108108
}
109109

src/libstd/num.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ pub use core::num::{FpCategory, ParseIntError, ParseFloatError, TryFromIntError}
2121
#[stable(feature = "rust1", since = "1.0.0")]
2222
pub use core::num::Wrapping;
2323

24-
#[unstable(feature = "nonzero", issue = "27730")]
24+
#[unstable(feature = "nonzero", issue = "49137")]
2525
pub use core::num::{
2626
NonZeroU8, NonZeroI8, NonZeroU16, NonZeroI16, NonZeroU32, NonZeroI32,
2727
NonZeroU64, NonZeroI64, NonZeroUsize, NonZeroIsize,
2828
};
2929

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

3535
#[cfg(test)] use fmt;

0 commit comments

Comments
 (0)