Skip to content

Commit 24e8806

Browse files
author
Lukas Markeffsky
committed
mark align_offset as #[must_use]
1 parent 2ef9a8a commit 24e8806

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/ptr/const_ptr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,7 @@ impl<T: ?Sized> *const T {
13201320
/// }
13211321
/// # }
13221322
/// ```
1323+
#[must_use]
13231324
#[stable(feature = "align_offset", since = "1.36.0")]
13241325
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
13251326
#[cfg(not(bootstrap))]

library/core/src/ptr/mut_ptr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,7 @@ impl<T: ?Sized> *mut T {
15881588
/// }
15891589
/// # }
15901590
/// ```
1591+
#[must_use]
15911592
#[stable(feature = "align_offset", since = "1.36.0")]
15921593
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
15931594
#[cfg(not(bootstrap))]

0 commit comments

Comments
 (0)