Skip to content

Commit 39e492a

Browse files
committed
mark internal inplace_iteration traits as hidden
1 parent 747a5d2 commit 39e492a

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

library/alloc/src/collections/binary_heap.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,7 @@ impl<T> ExactSizeIterator for IntoIter<T> {
12991299
impl<T> FusedIterator for IntoIter<T> {}
13001300

13011301
#[unstable(issue = "none", feature = "inplace_iteration")]
1302+
#[doc(hidden)]
13021303
unsafe impl<T> SourceIter for IntoIter<T> {
13031304
type Source = IntoIter<T>;
13041305

@@ -1309,6 +1310,7 @@ unsafe impl<T> SourceIter for IntoIter<T> {
13091310
}
13101311

13111312
#[unstable(issue = "none", feature = "inplace_iteration")]
1313+
#[doc(hidden)]
13121314
unsafe impl<I> InPlaceIterable for IntoIter<I> {}
13131315

13141316
impl<I> AsIntoIter for IntoIter<I> {

library/alloc/src/vec/into_iter.rs

+2
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,11 @@ unsafe impl<#[may_dangle] T, A: Allocator> Drop for IntoIter<T, A> {
264264
}
265265

266266
#[unstable(issue = "none", feature = "inplace_iteration")]
267+
#[doc(hidden)]
267268
unsafe impl<T, A: Allocator> InPlaceIterable for IntoIter<T, A> {}
268269

269270
#[unstable(issue = "none", feature = "inplace_iteration")]
271+
#[doc(hidden)]
270272
unsafe impl<T, A: Allocator> SourceIter for IntoIter<T, A> {
271273
type Source = Self;
272274

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

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub use self::zip::zip;
8888
/// [`FromIterator`]: crate::iter::FromIterator
8989
/// [`as_inner`]: SourceIter::as_inner
9090
#[unstable(issue = "none", feature = "inplace_iteration")]
91+
#[doc(hidden)]
9192
pub unsafe trait SourceIter {
9293
/// A source stage in an iterator pipeline.
9394
type Source: Iterator;

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

+1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ unsafe impl<I: TrustedLen + ?Sized> TrustedLen for &mut I {}
5353
/// [`next()`]: Iterator::next
5454
/// [`try_fold()`]: Iterator::try_fold
5555
#[unstable(issue = "none", feature = "inplace_iteration")]
56+
#[doc(hidden)]
5657
pub unsafe trait InPlaceIterable: Iterator {}

0 commit comments

Comments
 (0)