Assign tracking issue number for feature(nonzero_from_mut)

This commit is contained in:
SOFe 2022-12-30 22:50:41 +08:00 committed by David Tolnay
parent 3acb445f15
commit 596410eb36
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -177,7 +177,7 @@ pub const fn new(n: $Int) -> Option<Self> {
///
/// # Safety
/// The referenced value must not be currently zero.
#[unstable(feature = "nonzero_from_mut", issue = "none")]
#[unstable(feature = "nonzero_from_mut", issue = "106290")]
#[must_use]
#[inline]
pub unsafe fn from_mut_unchecked(n: &mut $Int) -> &mut Self {
@ -194,7 +194,7 @@ pub unsafe fn from_mut_unchecked(n: &mut $Int) -> &mut Self {
/// Converts a primitive mutable reference to a non-zero mutable reference
/// if the referenced integer is not zero.
#[unstable(feature = "nonzero_from_mut", issue = "none")]
#[unstable(feature = "nonzero_from_mut", issue = "106290")]
#[must_use]
#[inline]
pub fn from_mut(n: &mut $Int) -> Option<&mut Self> {