Skip to content

Commit

Permalink
Remove deprecated unstable ptr::Shared type alias.
Browse files Browse the repository at this point in the history
It has been deprecated for about one release cycle.
  • Loading branch information
SimonSapin committed Mar 17, 2018
1 parent 7cf1f18 commit 73c0537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/libcore/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,12 @@
//!
//! ```
//! #![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> {
Expand Down
5 changes: 0 additions & 5 deletions src/libcore/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2420,11 +2420,6 @@ impl<'a, T: ?Sized> From<NonNull<T>> for Unique<T> {
}
}

/// 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
Expand Down

0 comments on commit 73c0537

Please sign in to comment.