mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-06 03:52:53 +00:00
mark align_offset
as #[must_use]
This commit is contained in:
parent
2ef9a8ae0f
commit
24e88066dc
@ -1320,6 +1320,7 @@ impl<T: ?Sized> *const 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 @@ impl<T: ?Sized> *mut 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