We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c43aa5 + 54d6bcb commit a18e7a6Copy full SHA for a18e7a6
src/liballoc/boxed.rs
@@ -184,6 +184,7 @@ impl<T: ?Sized> Box<T> {
184
185
#[unstable(feature = "ptr_internals", issue = "0", reason = "use into_raw_non_null instead")]
186
#[inline]
187
+ #[doc(hidden)]
188
pub fn into_unique(b: Box<T>) -> Unique<T> {
189
let unique = b.0;
190
mem::forget(b);
src/libcore/ptr.rs
@@ -2513,6 +2513,7 @@ impl<T: ?Sized> PartialOrd for *mut T {
2513
reason = "use NonNull instead and consider PhantomData<T> \
2514
(if you also use #[may_dangle]), Send, and/or Sync")]
2515
#[allow(deprecated)]
2516
+#[doc(hidden)]
2517
pub struct Unique<T: ?Sized> {
2518
pointer: NonZero<*const T>,
2519
// NOTE: this marker has no consequences for variance, but is necessary
0 commit comments