Add diagnostic items for ptr::cast_mut
and ptr::from_ref
This commit is contained in:
parent
617d3d6d72
commit
a51ad131e6
3 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,7 @@ impl<T: ?Sized> *const T {
|
|||
/// refactored.
|
||||
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||
#[rustc_diagnostic_item = "ptr_cast_mut"]
|
||||
#[inline(always)]
|
||||
pub const fn cast_mut(self) -> *mut T {
|
||||
self as _
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue