]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize <*mut _>::cast and <*const _>::cast
authorSimon Sapin <simon.sapin@exyr.org>
Tue, 16 Jul 2019 06:51:53 +0000 (08:51 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Tue, 16 Jul 2019 06:51:53 +0000 (08:51 +0200)
FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402

src/libcore/ptr/mod.rs

index df66a2978de41f8de35c31f2352d0d42b5d680c5..a7f6926de4263614947090045f98b3bbfcfcb383 100644 (file)
@@ -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 _