mark align_offset
as #[must_use]
This commit is contained in:
parent
2ef9a8ae0f
commit
24e88066dc
@ -1320,6 +1320,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
/// }
|
||||
/// # }
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[stable(feature = "align_offset", since = "1.36.0")]
|
||||
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
|
||||
#[cfg(not(bootstrap))]
|
||||
|
@ -1588,6 +1588,7 @@ pub unsafe fn replace(self, src: T) -> T
|
||||
/// }
|
||||
/// # }
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[stable(feature = "align_offset", since = "1.36.0")]
|
||||
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
|
||||
#[cfg(not(bootstrap))]
|
||||
|
Loading…
Reference in New Issue
Block a user