diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-22 15:32:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-22 15:32:11 +0200 |
| commit | 2567af67a6a0973937bc65f89f8b002829efad7a (patch) | |
| tree | 4342a35f6d48a5b9ff60f727c1a7bd7e6bd3c620 | |
| parent | 0de90c67dce73694ddd577de67d8352e420bee0c (diff) | |
| parent | 8040c54b085967bc6b29cf6d27eda5908c204ca3 (diff) | |
| download | rust-2567af67a6a0973937bc65f89f8b002829efad7a.tar.gz rust-2567af67a6a0973937bc65f89f8b002829efad7a.zip | |
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
| -rw-r--r-- | src/libcore/ptr/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ impl<T: ?Sized> *const T { } /// 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 @@ impl<T: ?Sized> *mut T { } /// 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 _ |
