Skip to content

Commit

Permalink
std: Mark ptr::Unique with #[doc(hidden)]
Browse files Browse the repository at this point in the history
  • Loading branch information
Daiki Mizukami committed Apr 10, 2018
1 parent 0b72d48 commit f817d19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,7 @@ impl<T: ?Sized> PartialOrd for *mut T {
reason = "use NonNull instead and consider PhantomData<T> \
(if you also use #[may_dangle]), Send, and/or Sync")]
#[allow(deprecated)]
#[doc(hidden)]
pub struct Unique<T: ?Sized> {
pointer: NonZero<*const T>,
// NOTE: this marker has no consequences for variance, but is necessary
Expand Down

0 comments on commit f817d19

Please sign in to comment.