Skip to content

Commit

Permalink
Hide the items while waiting for the ACP
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Nov 19, 2022
1 parent 5fcafe3 commit bf1c98d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions core/src/iter/sources/repeat_n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ use crate::mem::ManuallyDrop;
/// assert_eq!(None, it.next());
/// ```
#[inline]
#[unstable(
feature = "iter_repeat_n",
reason = "waiting on FCP to decide whether to expose publicly",
issue = "104434"
)]
#[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);

Expand All @@ -80,11 +77,8 @@ pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
/// This `struct` is created by the [`repeat_n()`] function.
/// See its documentation for more.
#[derive(Clone, Debug)]
#[unstable(
feature = "iter_repeat_n",
reason = "waiting on FCP to decide whether to expose publicly",
issue = "104434"
)]
#[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.
Expand Down

0 comments on commit bf1c98d

Please sign in to comment.