File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1155,8 +1155,10 @@ symbols! {
1155
1155
profiler_builtins,
1156
1156
profiler_runtime,
1157
1157
ptr,
1158
+ ptr_cast,
1158
1159
ptr_cast_mut,
1159
1160
ptr_const_is_null,
1161
+ ptr_from_mut,
1160
1162
ptr_from_ref,
1161
1163
ptr_guaranteed_cmp,
1162
1164
ptr_is_null,
Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
710
710
#[ inline( always) ]
711
711
#[ must_use]
712
712
#[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
713
+ #[ rustc_diagnostic_item = "ptr_from_mut" ]
713
714
pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
714
715
r
715
716
}
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ impl<T: ?Sized> *mut T {
54
54
/// Casts to a pointer of another type.
55
55
#[ stable( feature = "ptr_cast" , since = "1.38.0" ) ]
56
56
#[ rustc_const_stable( feature = "const_ptr_cast" , since = "1.38.0" ) ]
57
+ #[ rustc_diagnostic_item = "ptr_cast" ]
57
58
#[ inline( always) ]
58
59
pub const fn cast < U > ( self ) -> * mut U {
59
60
self as _
You can’t perform that action at this time.
0 commit comments