Skip to content

Commit e1b3f41

Browse files
Hide re-exported doc hidden items
1 parent 918e455 commit e1b3f41

File tree

8 files changed

+12
-0
lines changed

8 files changed

+12
-0
lines changed

library/core/src/char/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ pub use self::decode::{DecodeUtf16, DecodeUtf16Error};
3434

3535
// perma-unstable re-exports
3636
#[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
37+
#[doc(hidden)]
3738
pub use self::methods::encode_utf16_raw;
3839
#[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
40+
#[doc(hidden)]
3941
pub use self::methods::encode_utf8_raw;
4042

4143
use crate::error::Error;

library/core/src/iter/adapters/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ pub use self::intersperse::{Intersperse, IntersperseWith};
5858
pub use self::map_while::MapWhile;
5959

6060
#[unstable(feature = "trusted_random_access", issue = "none")]
61+
#[doc(hidden)]
6162
pub use self::zip::TrustedRandomAccess;
6263

6364
#[unstable(feature = "trusted_random_access", issue = "none")]
65+
#[doc(hidden)]
6466
pub use self::zip::TrustedRandomAccessNoCoerce;
6567

6668
#[stable(feature = "iter_zip", since = "1.59.0")]

library/core/src/iter/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ pub use self::sources::{once_with, OnceWith};
401401
#[stable(feature = "rust1", since = "1.0.0")]
402402
pub use self::sources::{repeat, Repeat};
403403
#[unstable(feature = "iter_repeat_n", issue = "104434")]
404+
#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly
404405
pub use self::sources::{repeat_n, RepeatN};
405406
#[stable(feature = "iterator_repeat_with", since = "1.28.0")]
406407
pub use self::sources::{repeat_with, RepeatWith};
@@ -441,8 +442,10 @@ pub use self::adapters::SourceIter;
441442
#[stable(feature = "iterator_step_by", since = "1.28.0")]
442443
pub use self::adapters::StepBy;
443444
#[unstable(feature = "trusted_random_access", issue = "none")]
445+
#[doc(hidden)]
444446
pub use self::adapters::TrustedRandomAccess;
445447
#[unstable(feature = "trusted_random_access", issue = "none")]
448+
#[doc(hidden)]
446449
pub use self::adapters::TrustedRandomAccessNoCoerce;
447450
#[stable(feature = "rust1", since = "1.0.0")]
448451
pub use self::adapters::{

library/core/src/iter/sources.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub use self::empty::{empty, Empty};
1818
pub use self::once::{once, Once};
1919

2020
#[unstable(feature = "iter_repeat_n", issue = "104434")]
21+
#[doc(hidden)]
2122
pub use self::repeat_n::{repeat_n, RepeatN};
2223

2324
#[stable(feature = "iterator_repeat_with", since = "1.28.0")]

library/core/src/iter/traits/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub use self::{
1717
};
1818

1919
#[unstable(issue = "none", feature = "inplace_iteration")]
20+
#[doc(hidden)]
2021
pub use self::marker::InPlaceIterable;
2122
#[unstable(feature = "trusted_step", issue = "85731")]
2223
pub use self::marker::TrustedStep;

library/core/src/ops/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ pub use self::bit::{BitAndAssign, BitOrAssign, BitXorAssign, ShlAssign, ShrAssig
165165
pub use self::deref::{Deref, DerefMut};
166166

167167
#[unstable(feature = "receiver_trait", issue = "none")]
168+
#[doc(hidden)]
168169
pub use self::deref::Receiver;
169170

170171
#[stable(feature = "rust1", since = "1.0.0")]

library/core/src/prelude/v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub use crate::concat_bytes;
7171
// Do not `doc(inline)` these `doc(hidden)` items.
7272
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
7373
#[allow(deprecated)]
74+
#[doc(hidden)]
7475
pub use crate::macros::builtin::{RustcDecodable, RustcEncodable};
7576

7677
// Do not `doc(no_inline)` so that they become doc items on their own

library/core/src/ptr/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ pub use non_null::NonNull;
404404

405405
mod unique;
406406
#[unstable(feature = "ptr_internals", issue = "none")]
407+
#[doc(hidden)]
407408
pub use unique::Unique;
408409

409410
mod const_ptr;

0 commit comments

Comments
 (0)