File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 146146//!
147147//! ```
148148//! #![feature(core_intrinsics)]
149- //! #![feature(shared)]
150149//! use std::cell::Cell;
151- //! use std::ptr::Shared ;
150+ //! use std::ptr::NonNull ;
152151//! use std::intrinsics::abort;
153152//!
154153//! struct Rc<T: ?Sized> {
155- //! ptr: Shared <RcBox<T>>
154+ //! ptr: NonNull <RcBox<T>>
156155//! }
157156//!
158157//! struct RcBox<T: ?Sized> {
Original file line number Diff line number Diff line change @@ -2420,11 +2420,6 @@ impl<'a, T: ?Sized> From<NonNull<T>> for Unique<T> {
24202420 }
24212421}
24222422
2423- /// Previous name of `NonNull`.
2424- #[ rustc_deprecated( since = "1.25.0" , reason = "renamed to `NonNull`" ) ]
2425- #[ unstable( feature = "shared" , issue = "27730" ) ]
2426- pub type Shared < T > = NonNull < T > ;
2427-
24282423/// `*mut T` but non-zero and covariant.
24292424///
24302425/// This is often the correct thing to use when building data structures using
You can’t perform that action at this time.
0 commit comments