diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-04-24 21:15:25 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-04-25 00:29:09 +0200 |
| commit | 885a001788d18dbbde14587e1dbccca0dad73776 (patch) | |
| tree | 9d5b95b4dd2d8e1fda7bbf58b76a531fafed3685 /src/libcore | |
| parent | e305df1846a6d985315917ae0c81b74af8b4e641 (diff) | |
| download | rust-885a001788d18dbbde14587e1dbccca0dad73776.tar.gz rust-885a001788d18dbbde14587e1dbccca0dad73776.zip | |
const-stabilize NonNull::dangling and NonNull::cast
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index f05700a1db2..eee83ba5ebd 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2959,7 +2959,6 @@ impl<T: Sized> NonNull<T> { /// some other means. #[stable(feature = "nonnull", since = "1.25.0")] #[inline] - #[rustc_const_unstable(feature = "const_ptr_nonnull")] pub const fn dangling() -> Self { unsafe { let ptr = mem::align_of::<T>() as *mut T; @@ -3023,7 +3022,6 @@ impl<T: ?Sized> NonNull<T> { /// Cast to a pointer of another type #[stable(feature = "nonnull_cast", since = "1.27.0")] #[inline] - #[rustc_const_unstable(feature = "const_ptr_nonnull")] pub const fn cast<U>(self) -> NonNull<U> { unsafe { NonNull::new_unchecked(self.as_ptr() as *mut U) |
