Skip to content

Commit 5e734f8

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 decd3b4 commit 5e734f8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/ptr/mod.rs

Lines changed: 0 additions & 1 deletion
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)