Stabilize <*mut _>::cast and <*const _>::cast
FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402
This commit is contained in:
parent
4b65a86eba
commit
8040c54b08
1 changed files with 2 additions and 2 deletions
|
@ -1043,7 +1043,7 @@ impl<T: ?Sized> *const T {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Cast to a pointer to a different type
|
/// Cast to a pointer to a different type
|
||||||
#[unstable(feature = "ptr_cast", issue = "60602")]
|
#[stable(feature = "ptr_cast", since = "1.38.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn cast<U>(self) -> *const U {
|
pub const fn cast<U>(self) -> *const U {
|
||||||
self as _
|
self as _
|
||||||
|
@ -1678,7 +1678,7 @@ impl<T: ?Sized> *mut T {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Cast to a pointer to a different type
|
/// Cast to a pointer to a different type
|
||||||
#[unstable(feature = "ptr_cast", issue = "60602")]
|
#[stable(feature = "ptr_cast", since = "1.38.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn cast<U>(self) -> *mut U {
|
pub const fn cast<U>(self) -> *mut U {
|
||||||
self as _
|
self as _
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue