1
Fork 0

replace stabilization placeholders

This commit is contained in:
Pietro Albini 2022-09-19 14:54:16 +02:00
parent 72f4923979
commit d0305b3d00
No known key found for this signature in database
GPG key ID: CD76B35F7734769E
8 changed files with 29 additions and 29 deletions

View file

@ -98,8 +98,8 @@ impl<T: ?Sized> *const T {
///
/// This is a bit safer than `as` because it wouldn't silently change the type if the code is
/// refactored.
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
pub const fn cast_mut(self) -> *mut T {
self as _
}