File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 19
19
#![ feature( rustc_attrs) ]
20
20
#![ cfg_attr( test, feature( test) ) ]
21
21
#![ feature( strict_provenance) ]
22
- #![ feature( ptr_const_cast) ]
23
22
24
23
use smallvec:: SmallVec ;
25
24
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ impl<T: ?Sized> *const T {
95
95
///
96
96
/// This is a bit safer than `as` because it wouldn't silently change the type if the code is
97
97
/// refactored.
98
- #[ unstable ( feature = "ptr_const_cast" , issue = "92675 " ) ]
99
- #[ rustc_const_unstable ( feature = "ptr_const_cast" , issue = "92675 " ) ]
98
+ #[ stable ( feature = "ptr_const_cast" , since = "1.65.0 " ) ]
99
+ #[ rustc_const_stable ( feature = "ptr_const_cast" , since = "1.65.0 " ) ]
100
100
pub const fn cast_mut ( self ) -> * mut T {
101
101
self as _
102
102
}
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ impl<T: ?Sized> *mut T {
100
100
/// coercion.
101
101
///
102
102
/// [`cast_mut`]: #method.cast_mut
103
- #[ unstable ( feature = "ptr_const_cast" , issue = "92675 " ) ]
104
- #[ rustc_const_unstable ( feature = "ptr_const_cast" , issue = "92675 " ) ]
103
+ #[ stable ( feature = "ptr_const_cast" , since = "1.65.0 " ) ]
104
+ #[ rustc_const_stable ( feature = "ptr_const_cast" , since = "1.65.0 " ) ]
105
105
pub const fn cast_const ( self ) -> * const T {
106
106
self as _
107
107
}
You can’t perform that action at this time.
0 commit comments