From: Simon Sapin Date: Tue, 16 Jul 2019 06:51:53 +0000 (+0200) Subject: Stabilize <*mut _>::cast and <*const _>::cast X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8040c54b085967bc6b29cf6d27eda5908c204ca3;p=rust.git Stabilize <*mut _>::cast and <*const _>::cast FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402 --- diff --git a/src/libcore/ptr/mod.rs b/src/libcore/ptr/mod.rs index df66a2978de..a7f6926de42 100644 --- a/src/libcore/ptr/mod.rs +++ b/src/libcore/ptr/mod.rs @@ -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(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(self) -> *mut U { self as _