Rollup merge of #138353 - RalfJung:expose-provenance-must-use, r=ibraheemdev
remove must_use from <*const T>::expose_provenance `<*mut T>::expose_provenance` does not have this attribute, and in fact the function is documented to have a side-effect, so there are perfectly legitimate use-cases where the return value would be ignored.
This commit is contained in:
commit
ffa96fe451
1 changed files with 0 additions and 1 deletions
|
@ -193,7 +193,6 @@ impl<T: ?Sized> *const T {
|
|||
/// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
|
||||
///
|
||||
/// [`with_exposed_provenance`]: with_exposed_provenance
|
||||
#[must_use]
|
||||
#[inline(always)]
|
||||
#[stable(feature = "exposed_provenance", since = "1.84.0")]
|
||||
pub fn expose_provenance(self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue