From e1b3f417ee798fdb63de1f8127d1e38d84a2695e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 15 May 2023 16:34:58 +0200 Subject: [PATCH] Hide re-exported doc hidden items --- library/core/src/char/mod.rs | 2 ++ library/core/src/iter/adapters/mod.rs | 2 ++ library/core/src/iter/mod.rs | 3 +++ library/core/src/iter/sources.rs | 1 + library/core/src/iter/traits/mod.rs | 1 + library/core/src/ops/mod.rs | 1 + library/core/src/prelude/v1.rs | 1 + library/core/src/ptr/mod.rs | 1 + 8 files changed, 12 insertions(+) diff --git a/library/core/src/char/mod.rs b/library/core/src/char/mod.rs index e186db7052cd0..41a72c083a328 100644 --- a/library/core/src/char/mod.rs +++ b/library/core/src/char/mod.rs @@ -34,8 +34,10 @@ pub use self::decode::{DecodeUtf16, DecodeUtf16Error}; // perma-unstable re-exports #[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")] +#[doc(hidden)] pub use self::methods::encode_utf16_raw; #[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")] +#[doc(hidden)] pub use self::methods::encode_utf8_raw; use crate::error::Error; diff --git a/library/core/src/iter/adapters/mod.rs b/library/core/src/iter/adapters/mod.rs index 8cc2b7cec4165..9de25153fe7cc 100644 --- a/library/core/src/iter/adapters/mod.rs +++ b/library/core/src/iter/adapters/mod.rs @@ -58,9 +58,11 @@ pub use self::intersperse::{Intersperse, IntersperseWith}; pub use self::map_while::MapWhile; #[unstable(feature = "trusted_random_access", issue = "none")] +#[doc(hidden)] pub use self::zip::TrustedRandomAccess; #[unstable(feature = "trusted_random_access", issue = "none")] +#[doc(hidden)] pub use self::zip::TrustedRandomAccessNoCoerce; #[stable(feature = "iter_zip", since = "1.59.0")] diff --git a/library/core/src/iter/mod.rs b/library/core/src/iter/mod.rs index 3bd6df4f3471f..99fbb613cf27c 100644 --- a/library/core/src/iter/mod.rs +++ b/library/core/src/iter/mod.rs @@ -401,6 +401,7 @@ pub use self::sources::{once_with, OnceWith}; #[stable(feature = "rust1", since = "1.0.0")] pub use self::sources::{repeat, Repeat}; #[unstable(feature = "iter_repeat_n", issue = "104434")] +#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly pub use self::sources::{repeat_n, RepeatN}; #[stable(feature = "iterator_repeat_with", since = "1.28.0")] pub use self::sources::{repeat_with, RepeatWith}; @@ -441,8 +442,10 @@ pub use self::adapters::SourceIter; #[stable(feature = "iterator_step_by", since = "1.28.0")] pub use self::adapters::StepBy; #[unstable(feature = "trusted_random_access", issue = "none")] +#[doc(hidden)] pub use self::adapters::TrustedRandomAccess; #[unstable(feature = "trusted_random_access", issue = "none")] +#[doc(hidden)] pub use self::adapters::TrustedRandomAccessNoCoerce; #[stable(feature = "rust1", since = "1.0.0")] pub use self::adapters::{ diff --git a/library/core/src/iter/sources.rs b/library/core/src/iter/sources.rs index 3ec426a3ad9a1..65ac4c5375244 100644 --- a/library/core/src/iter/sources.rs +++ b/library/core/src/iter/sources.rs @@ -18,6 +18,7 @@ pub use self::empty::{empty, Empty}; pub use self::once::{once, Once}; #[unstable(feature = "iter_repeat_n", issue = "104434")] +#[doc(hidden)] pub use self::repeat_n::{repeat_n, RepeatN}; #[stable(feature = "iterator_repeat_with", since = "1.28.0")] diff --git a/library/core/src/iter/traits/mod.rs b/library/core/src/iter/traits/mod.rs index 41ea29e6a84d9..a788d096a725a 100644 --- a/library/core/src/iter/traits/mod.rs +++ b/library/core/src/iter/traits/mod.rs @@ -17,6 +17,7 @@ pub use self::{ }; #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] pub use self::marker::InPlaceIterable; #[unstable(feature = "trusted_step", issue = "85731")] pub use self::marker::TrustedStep; diff --git a/library/core/src/ops/mod.rs b/library/core/src/ops/mod.rs index 97d9b750d92f9..734f50d986c87 100644 --- a/library/core/src/ops/mod.rs +++ b/library/core/src/ops/mod.rs @@ -165,6 +165,7 @@ pub use self::bit::{BitAndAssign, BitOrAssign, BitXorAssign, ShlAssign, ShrAssig pub use self::deref::{Deref, DerefMut}; #[unstable(feature = "receiver_trait", issue = "none")] +#[doc(hidden)] pub use self::deref::Receiver; #[stable(feature = "rust1", since = "1.0.0")] diff --git a/library/core/src/prelude/v1.rs b/library/core/src/prelude/v1.rs index 10525a16f3a66..4c96afed23b08 100644 --- a/library/core/src/prelude/v1.rs +++ b/library/core/src/prelude/v1.rs @@ -71,6 +71,7 @@ pub use crate::concat_bytes; // Do not `doc(inline)` these `doc(hidden)` items. #[stable(feature = "builtin_macro_prelude", since = "1.38.0")] #[allow(deprecated)] +#[doc(hidden)] pub use crate::macros::builtin::{RustcDecodable, RustcEncodable}; // Do not `doc(no_inline)` so that they become doc items on their own diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index ecbf4e66fa489..06e25afff3f35 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -404,6 +404,7 @@ pub use non_null::NonNull; mod unique; #[unstable(feature = "ptr_internals", issue = "none")] +#[doc(hidden)] pub use unique::Unique; mod const_ptr;