Stabilize unsigned_nonzero_div_ceil

This commit is contained in:
Asger Hautop Drewsen 2025-10-10 18:01:03 +02:00
parent 9725c4baac
commit 4eccd02229

View file

@ -1373,7 +1373,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
/// # Examples
///
/// ```
/// # #![feature(unsigned_nonzero_div_ceil)]
/// # use std::num::NonZero;
#[doc = concat!("let one = NonZero::new(1", stringify!($Int), ").unwrap();")]
#[doc = concat!("let max = NonZero::new(", stringify!($Int), "::MAX).unwrap();")]
@ -1383,7 +1382,11 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
#[doc = concat!("let three = NonZero::new(3", stringify!($Int), ").unwrap();")]
/// assert_eq!(three.div_ceil(two), two);
/// ```
#[unstable(feature = "unsigned_nonzero_div_ceil", issue = "132968")]
#[stable(feature = "unsigned_nonzero_div_ceil", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(
feature = "unsigned_nonzero_div_ceil",
since = "CURRENT_RUSTC_VERSION"
)]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]