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 @@ -1146,6 +1146,8 @@ symbols! {
11461146 profiler_builtins,
11471147 profiler_runtime,
11481148 ptr,
1149+ ptr_cast_mut,
1150+ ptr_from_ref,
11491151 ptr_guaranteed_cmp,
11501152 ptr_mask,
11511153 ptr_null,
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ impl<T: ?Sized> *const T {
104104 /// refactored.
105105 #[ stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
106106 #[ rustc_const_stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
107+ #[ rustc_diagnostic_item = "ptr_cast_mut" ]
107108 #[ inline( always) ]
108109 pub const fn cast_mut ( self ) -> * mut T {
109110 self as _
Original file line number Diff line number Diff line change @@ -698,6 +698,7 @@ where
698698#[ inline( always) ]
699699#[ must_use]
700700#[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
701+ #[ rustc_diagnostic_item = "ptr_from_ref" ]
701702pub const fn from_ref < T : ?Sized > ( r : & T ) -> * const T {
702703 r
703704}
You can’t perform that action at this time.
0 commit comments