File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 146
146
//!
147
147
//! ```
148
148
//! #![feature(core_intrinsics)]
149
- //! #![feature(shared)]
150
149
//! use std::cell::Cell;
151
- //! use std::ptr::Shared ;
150
+ //! use std::ptr::NonNull ;
152
151
//! use std::intrinsics::abort;
153
152
//!
154
153
//! struct Rc<T: ?Sized> {
155
- //! ptr: Shared <RcBox<T>>
154
+ //! ptr: NonNull <RcBox<T>>
156
155
//! }
157
156
//!
158
157
//! 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> {
2420
2420
}
2421
2421
}
2422
2422
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
-
2428
2423
/// `*mut T` but non-zero and covariant.
2429
2424
///
2430
2425
/// 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