diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-07-16 08:51:53 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-07-16 08:51:53 +0200 |
| commit | 8040c54b085967bc6b29cf6d27eda5908c204ca3 (patch) | |
| tree | 1aa71602e4ae038739073c0ebd2a234aab0d00e2 /src/libcore | |
| parent | 4b65a86ebace8600c8e269e8bfe3365cdc460e68 (diff) | |
| download | rust-8040c54b085967bc6b29cf6d27eda5908c204ca3.tar.gz rust-8040c54b085967bc6b29cf6d27eda5908c204ca3.zip | |
Stabilize <*mut _>::cast and <*const _>::cast
FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402
Diffstat (limited to 'src/libcore')
| -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 _ |
