Skip to content

Commit

Permalink
mark align_offset as #[must_use]
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Markeffsky committed Oct 20, 2022
1 parent 5371cc4 commit c2605f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,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))]
Expand Down
1 change: 1 addition & 0 deletions library/core/src/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,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))]
Expand Down

0 comments on commit c2605f6

Please sign in to comment.