Remove ptr_from_mut diagnostic item
It was added by #113657 for its purposes. Now it is not used any more, remove it, as we use the attr now.
This commit is contained in:
parent
33970db8c6
commit
8faac74e54
2 changed files with 0 additions and 2 deletions
|
@ -1159,7 +1159,6 @@ symbols! {
|
||||||
ptr_cast,
|
ptr_cast,
|
||||||
ptr_cast_mut,
|
ptr_cast_mut,
|
||||||
ptr_const_is_null,
|
ptr_const_is_null,
|
||||||
ptr_from_mut,
|
|
||||||
ptr_from_ref,
|
ptr_from_ref,
|
||||||
ptr_guaranteed_cmp,
|
ptr_guaranteed_cmp,
|
||||||
ptr_is_null,
|
ptr_is_null,
|
||||||
|
|
|
@ -712,7 +712,6 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "ptr_from_ref", issue = "106116")]
|
#[unstable(feature = "ptr_from_ref", issue = "106116")]
|
||||||
#[cfg_attr(not(bootstrap), rustc_never_returns_null_ptr)]
|
#[cfg_attr(not(bootstrap), rustc_never_returns_null_ptr)]
|
||||||
#[rustc_diagnostic_item = "ptr_from_mut"]
|
|
||||||
pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T {
|
pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T {
|
||||||
r
|
r
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue