mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Un-hide iter::repeat_n
This commit is contained in:
parent
6bf600bc98
commit
aa72e549cf
@ -59,7 +59,6 @@ use crate::num::NonZeroUsize;
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "iter_repeat_n", issue = "104434")]
|
||||
#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly
|
||||
pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
|
||||
let mut element = ManuallyDrop::new(element);
|
||||
|
||||
@ -79,7 +78,6 @@ pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
|
||||
/// See its documentation for more.
|
||||
#[derive(Clone, Debug)]
|
||||
#[unstable(feature = "iter_repeat_n", issue = "104434")]
|
||||
#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly
|
||||
pub struct RepeatN<A> {
|
||||
count: usize,
|
||||
// Invariant: has been dropped iff count == 0.
|
||||
|
Loading…
Reference in New Issue
Block a user