]> git.lizzy.rs Git - rust.git/commitdiff
Remove deprecated unstable ptr::Shared type alias.
authorSimon Sapin <simon.sapin@exyr.org>
Thu, 8 Mar 2018 15:55:51 +0000 (16:55 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Sat, 17 Mar 2018 22:59:35 +0000 (23:59 +0100)
It has been deprecated for about one release cycle.

src/libcore/cell.rs
src/libcore/ptr.rs

index 36618e86968b5ea3d0fecf4c684bed1b6b0f0ca2..c8ee166fee3e9240383a7ff37c77a0c2e15be536 100644 (file)
 //!
 //! ```
 //! #![feature(core_intrinsics)]
-//! #![feature(shared)]
 //! use std::cell::Cell;
-//! use std::ptr::Shared;
+//! use std::ptr::NonNull;
 //! use std::intrinsics::abort;
 //!
 //! struct Rc<T: ?Sized> {
-//!     ptr: Shared<RcBox<T>>
+//!     ptr: NonNull<RcBox<T>>
 //! }
 //!
 //! struct RcBox<T: ?Sized> {
index 4ab0ceb796773a1f554a1bb70b71493f10e8b221..cebd5989e96cd2a78c187a3aa048fd550b0e727a 100644 (file)
@@ -2420,11 +2420,6 @@ fn from(p: NonNull<T>) -> Self {
     }
 }
 
-/// Previous name of `NonNull`.
-#[rustc_deprecated(since = "1.25.0", reason = "renamed to `NonNull`")]
-#[unstable(feature = "shared", issue = "27730")]
-pub type Shared<T> = NonNull<T>;
-
 /// `*mut T` but non-zero and covariant.
 ///
 /// This is often the correct thing to use when building data structures using