File tree 3 files changed +4
-0
lines changed
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1146,6 +1146,8 @@ symbols! {
1146
1146
profiler_builtins,
1147
1147
profiler_runtime,
1148
1148
ptr,
1149
+ ptr_cast_mut,
1150
+ ptr_from_ref,
1149
1151
ptr_guaranteed_cmp,
1150
1152
ptr_mask,
1151
1153
ptr_null,
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ impl<T: ?Sized> *const T {
104
104
/// refactored.
105
105
#[ stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
106
106
#[ rustc_const_stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
107
+ #[ rustc_diagnostic_item = "ptr_cast_mut" ]
107
108
#[ inline( always) ]
108
109
pub const fn cast_mut ( self ) -> * mut T {
109
110
self as _
Original file line number Diff line number Diff line change @@ -698,6 +698,7 @@ where
698
698
#[ inline( always) ]
699
699
#[ must_use]
700
700
#[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
701
+ #[ rustc_diagnostic_item = "ptr_from_ref" ]
701
702
pub const fn from_ref < T : ?Sized > ( r : & T ) -> * const T {
702
703
r
703
704
}
You can’t perform that action at this time.
0 commit comments