@@ -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 |
|
- #[stable(feature = "ptr_const_cast", since = "1.65.0")] |
99 |
|
-#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")] |
|
98 |
+ #[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")] |
|
99 |
+#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")] |
100 |
100 |
pub const fn cast_mut(self) -> *mut T { |
101 |
101 |
self as _ |
102 |
102 |
} |