Skip to content

Commit 73c0537

Browse files
committed
Remove deprecated unstable ptr::Shared type alias.
It has been deprecated for about one release cycle.
1 parent 7cf1f18 commit 73c0537

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/libcore/cell.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,12 @@
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> {

src/libcore/ptr.rs

-5
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)