Skip to content

Commit e576a9b

Browse files
committed
Adjust ptr_const_cast stabilization version to CURRENT_RUSTC_VERSION
1 parent 7a5b1d7 commit e576a9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/core/src/ptr/const_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ impl<T: ?Sized> *const T {
9595
///
9696
/// This is a bit safer than `as` because it wouldn't silently change the type if the code is
9797
/// 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")]
100100
pub const fn cast_mut(self) -> *mut T {
101101
self as _
102102
}

library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ impl<T: ?Sized> *mut T {
100100
/// coercion.
101101
///
102102
/// [`cast_mut`]: #method.cast_mut
103-
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
104-
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
103+
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
104+
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
105105
pub const fn cast_const(self) -> *const T {
106106
self as _
107107
}

0 commit comments

Comments
 (0)