From 39e492a2beda93355555138d3059d80b674c8b08 Mon Sep 17 00:00:00 2001 From: The8472 Date: Sun, 16 May 2021 18:48:35 +0200 Subject: [PATCH] mark internal inplace_iteration traits as hidden --- library/alloc/src/collections/binary_heap.rs | 2 ++ library/alloc/src/vec/into_iter.rs | 2 ++ library/core/src/iter/adapters/mod.rs | 1 + library/core/src/iter/traits/marker.rs | 1 + 4 files changed, 6 insertions(+) diff --git a/library/alloc/src/collections/binary_heap.rs b/library/alloc/src/collections/binary_heap.rs index a201af0103070..544e18d1ff391 100644 --- a/library/alloc/src/collections/binary_heap.rs +++ b/library/alloc/src/collections/binary_heap.rs @@ -1299,6 +1299,7 @@ impl ExactSizeIterator for IntoIter { impl FusedIterator for IntoIter {} #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] unsafe impl SourceIter for IntoIter { type Source = IntoIter; @@ -1309,6 +1310,7 @@ unsafe impl SourceIter for IntoIter { } #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] unsafe impl InPlaceIterable for IntoIter {} impl AsIntoIter for IntoIter { diff --git a/library/alloc/src/vec/into_iter.rs b/library/alloc/src/vec/into_iter.rs index 2e68161d260bd..8da4d995ba5c6 100644 --- a/library/alloc/src/vec/into_iter.rs +++ b/library/alloc/src/vec/into_iter.rs @@ -264,9 +264,11 @@ unsafe impl<#[may_dangle] T, A: Allocator> Drop for IntoIter { } #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] unsafe impl InPlaceIterable for IntoIter {} #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] unsafe impl SourceIter for IntoIter { type Source = Self; diff --git a/library/core/src/iter/adapters/mod.rs b/library/core/src/iter/adapters/mod.rs index 61d8351d59f09..4f69b82ba4c3b 100644 --- a/library/core/src/iter/adapters/mod.rs +++ b/library/core/src/iter/adapters/mod.rs @@ -88,6 +88,7 @@ pub use self::zip::zip; /// [`FromIterator`]: crate::iter::FromIterator /// [`as_inner`]: SourceIter::as_inner #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] pub unsafe trait SourceIter { /// A source stage in an iterator pipeline. type Source: Iterator; diff --git a/library/core/src/iter/traits/marker.rs b/library/core/src/iter/traits/marker.rs index c4e21b84863df..22b5ffdf8869a 100644 --- a/library/core/src/iter/traits/marker.rs +++ b/library/core/src/iter/traits/marker.rs @@ -53,4 +53,5 @@ unsafe impl TrustedLen for &mut I {} /// [`next()`]: Iterator::next /// [`try_fold()`]: Iterator::try_fold #[unstable(issue = "none", feature = "inplace_iteration")] +#[doc(hidden)] pub unsafe trait InPlaceIterable: Iterator {}