Skip to content

Commit a18e7a6

Browse files
authored
Rollup merge of rust-lang#49858 - dmizuk:unique-doc-hidden, r=steveklabnik
std: Mark `ptr::Unique` with `#[doc(hidden)]` `Unique` is now perma-unstable, so let's hide its docs.
2 parents 3c43aa5 + 54d6bcb commit a18e7a6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/liballoc/boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ impl<T: ?Sized> Box<T> {
184184

185185
#[unstable(feature = "ptr_internals", issue = "0", reason = "use into_raw_non_null instead")]
186186
#[inline]
187+
#[doc(hidden)]
187188
pub fn into_unique(b: Box<T>) -> Unique<T> {
188189
let unique = b.0;
189190
mem::forget(b);

src/libcore/ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,7 @@ impl<T: ?Sized> PartialOrd for *mut T {
25132513
reason = "use NonNull instead and consider PhantomData<T> \
25142514
(if you also use #[may_dangle]), Send, and/or Sync")]
25152515
#[allow(deprecated)]
2516+
#[doc(hidden)]
25162517
pub struct Unique<T: ?Sized> {
25172518
pointer: NonZero<*const T>,
25182519
// NOTE: this marker has no consequences for variance, but is necessary

0 commit comments

Comments
 (0)