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! {
11551155 profiler_builtins,
11561156 profiler_runtime,
11571157 ptr,
1158+ ptr_cast,
11581159 ptr_cast_mut,
11591160 ptr_const_is_null,
1161+ ptr_from_mut,
11601162 ptr_from_ref,
11611163 ptr_guaranteed_cmp,
11621164 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 {
710710#[ inline( always) ]
711711#[ must_use]
712712#[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
713+ #[ rustc_diagnostic_item = "ptr_from_mut" ]
713714pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
714715 r
715716}
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ impl<T: ?Sized> *mut T {
5454 /// Casts to a pointer of another type.
5555 #[ stable( feature = "ptr_cast" , since = "1.38.0" ) ]
5656 #[ rustc_const_stable( feature = "const_ptr_cast" , since = "1.38.0" ) ]
57+ #[ rustc_diagnostic_item = "ptr_cast" ]
5758 #[ inline( always) ]
5859 pub const fn cast < U > ( self ) -> * mut U {
5960 self as _
You can’t perform that action at this time.
0 commit comments