Skip to content

Commit 4705282

Browse files
authored
Unrolled build for #147562
Rollup merge of #147562 - tyilo:stabilize-unsigned_nonzero_div_ceil, r=joboet Stabilize `NonZero<u*>::div_ceil` As per #132968 (comment) r? libs
2 parents b3f8586 + 4eccd02 commit 4705282

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

library/core/src/num/nonzero.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
13731373
/// # Examples
13741374
///
13751375
/// ```
1376-
/// # #![feature(unsigned_nonzero_div_ceil)]
13771376
/// # use std::num::NonZero;
13781377
#[doc = concat!("let one = NonZero::new(1", stringify!($Int), ").unwrap();")]
13791378
#[doc = concat!("let max = NonZero::new(", stringify!($Int), "::MAX).unwrap();")]
@@ -1383,7 +1382,11 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
13831382
#[doc = concat!("let three = NonZero::new(3", stringify!($Int), ").unwrap();")]
13841383
/// assert_eq!(three.div_ceil(two), two);
13851384
/// ```
1386-
#[unstable(feature = "unsigned_nonzero_div_ceil", issue = "132968")]
1385+
#[stable(feature = "unsigned_nonzero_div_ceil", since = "CURRENT_RUSTC_VERSION")]
1386+
#[rustc_const_stable(
1387+
feature = "unsigned_nonzero_div_ceil",
1388+
since = "CURRENT_RUSTC_VERSION"
1389+
)]
13871390
#[must_use = "this returns the result of the operation, \
13881391
without modifying the original"]
13891392
#[inline]

0 commit comments

Comments
 (0)