Skip to content

Commit c2605f6

Browse files
author
Lukas Markeffsky
committed
mark align_offset as #[must_use]
1 parent 5371cc4 commit c2605f6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/ptr/const_ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,7 @@ impl<T: ?Sized> *const T {
13011301
/// }
13021302
/// # }
13031303
/// ```
1304+
#[must_use]
13041305
#[stable(feature = "align_offset", since = "1.36.0")]
13051306
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
13061307
#[cfg(not(bootstrap))]

library/core/src/ptr/mut_ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ impl<T: ?Sized> *mut T {
15721572
/// }
15731573
/// # }
15741574
/// ```
1575+
#[must_use]
15751576
#[stable(feature = "align_offset", since = "1.36.0")]
15761577
#[rustc_const_unstable(feature = "const_align_offset", issue = "90962")]
15771578
#[cfg(not(bootstrap))]

0 commit comments

Comments
 (0)