Rollup merge of #62713 - SimonSapin:cast, r=Centril
Stabilize <*mut _>::cast and <*const _>::cast Fixes #60602. FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402
This commit is contained in:
commit
2567af67a6
@ -1043,7 +1043,7 @@ pub fn is_null(self) -> bool {
|
||||
}
|
||||
|
||||
/// Cast to a pointer to a different type
|
||||
#[unstable(feature = "ptr_cast", issue = "60602")]
|
||||
#[stable(feature = "ptr_cast", since = "1.38.0")]
|
||||
#[inline]
|
||||
pub const fn cast<U>(self) -> *const U {
|
||||
self as _
|
||||
@ -1678,7 +1678,7 @@ pub fn is_null(self) -> bool {
|
||||
}
|
||||
|
||||
/// Cast to a pointer to a different type
|
||||
#[unstable(feature = "ptr_cast", issue = "60602")]
|
||||
#[stable(feature = "ptr_cast", since = "1.38.0")]
|
||||
#[inline]
|
||||
pub const fn cast<U>(self) -> *mut U {
|
||||
self as _
|
||||
|
Loading…
Reference in New Issue
Block a user