about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-04-28 03:32:11 +0800
committerGitHub <noreply@github.com>2018-04-28 03:32:11 +0800
commita18e7a6e837eba07dcd64fc0d3ea79ac2bab01cc (patch)
tree10dbe7f83bced869e48b074eec3a9236274a9e41 /src/libcore
parent3c43aa5677e17dfb9f5004522745a02e21a604a4 (diff)
parent54d6bcbf70112ceb0efa4579ab9f6d5673588889 (diff)
downloadrust-a18e7a6e837eba07dcd64fc0d3ea79ac2bab01cc.tar.gz
rust-a18e7a6e837eba07dcd64fc0d3ea79ac2bab01cc.zip
Rollup merge of #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.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/ptr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 74bb264cc67..c61bdfc9c4f 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -2513,6 +2513,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