about summary refs log tree commit diff
path: root/library/alloc/src/vec
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-06-11 22:16:44 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-06-16 22:08:44 -0700
commit910c7fa7673b80ead337c5d37259c9ff4dcf355c (patch)
treead207790bba20bf7f07c5a5e15494a57d28412a1 /library/alloc/src/vec
parentbff4f073c8bc09788c5111ef6f7aa2b74e75dc89 (diff)
downloadrust-910c7fa7673b80ead337c5d37259c9ff4dcf355c.tar.gz
rust-910c7fa7673b80ead337c5d37259c9ff4dcf355c.zip
Add doc(hidden) to all __iterator_get_unchecked
This method on the Iterator trait is doc(hidden), and about half of
implementations were doc(hidden). This adds the attribute to the
remaining implementations.
Diffstat (limited to 'library/alloc/src/vec')
-rw-r--r--library/alloc/src/vec/into_iter.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/vec/into_iter.rs b/library/alloc/src/vec/into_iter.rs
index 8da4d995ba5..7a08f4c6cba 100644
--- a/library/alloc/src/vec/into_iter.rs
+++ b/library/alloc/src/vec/into_iter.rs
@@ -163,6 +163,7 @@ impl<T, A: Allocator> Iterator for IntoIter<T, A> {
         self.len()
     }
 
+    #[doc(hidden)]
     unsafe fn __iterator_get_unchecked(&mut self, i: usize) -> Self::Item
     where
         Self: TrustedRandomAccess,