Skip to content

Commit 8faac74

Browse files
committed
Remove ptr_from_mut diagnostic item
It was added by rust-lang#113657 for its purposes. Now it is not used any more, remove it, as we use the attr now.
1 parent 33970db commit 8faac74

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

compiler/rustc_span/src/symbol.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,6 @@ symbols! {
11591159
ptr_cast,
11601160
ptr_cast_mut,
11611161
ptr_const_is_null,
1162-
ptr_from_mut,
11631162
ptr_from_ref,
11641163
ptr_guaranteed_cmp,
11651164
ptr_is_null,

library/core/src/ptr/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,6 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
712712
#[must_use]
713713
#[unstable(feature = "ptr_from_ref", issue = "106116")]
714714
#[cfg_attr(not(bootstrap), rustc_never_returns_null_ptr)]
715-
#[rustc_diagnostic_item = "ptr_from_mut"]
716715
pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T {
717716
r
718717
}

0 commit comments

Comments
 (0)