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 @@ -543,6 +543,7 @@ symbols! {
543
543
const_panic_fmt,
544
544
const_param_ty,
545
545
const_precise_live_drops,
546
+ const_ptr_cast,
546
547
const_raw_ptr_deref,
547
548
const_raw_ptr_to_usize_cast,
548
549
const_refs_to_cell,
@@ -1159,6 +1160,7 @@ symbols! {
1159
1160
profiler_runtime,
1160
1161
ptr,
1161
1162
ptr_cast,
1163
+ ptr_cast_const,
1162
1164
ptr_cast_mut,
1163
1165
ptr_const_is_null,
1164
1166
ptr_from_mut,
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ impl<T: ?Sized> *const T {
55
55
/// Casts to a pointer of another type.
56
56
#[ stable( feature = "ptr_cast" , since = "1.38.0" ) ]
57
57
#[ rustc_const_stable( feature = "const_ptr_cast" , since = "1.38.0" ) ]
58
+ #[ rustc_diagnostic_item = "const_ptr_cast" ]
58
59
#[ inline( always) ]
59
60
pub const fn cast < U > ( self ) -> * const U {
60
61
self as _
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ impl<T: ?Sized> *mut T {
112
112
/// [`cast_mut`]: #method.cast_mut
113
113
#[ stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
114
114
#[ rustc_const_stable( feature = "ptr_const_cast" , since = "1.65.0" ) ]
115
+ #[ rustc_diagnostic_item = "ptr_cast_const" ]
115
116
#[ inline( always) ]
116
117
pub const fn cast_const ( self ) -> * const T {
117
118
self as _
You can’t perform that action at this time.
0 commit comments