diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-11-18 19:46:18 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-11-18 19:46:18 -0800 |
| commit | 71bb200225f0164940acc21f1fb647c8155f1706 (patch) | |
| tree | 9ea76e2b77f5b22802bcf447caaf0b4fa5dd60d3 | |
| parent | d62b90389240c4f27a9f9401257c0ffb727ae797 (diff) | |
| download | rust-71bb200225f0164940acc21f1fb647c8155f1706.tar.gz rust-71bb200225f0164940acc21f1fb647c8155f1706.zip | |
Hide the items while waiting for the ACP
| -rw-r--r-- | library/core/src/iter/sources/repeat_n.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/library/core/src/iter/sources/repeat_n.rs b/library/core/src/iter/sources/repeat_n.rs index 538f3bed59f..dc69bf4df59 100644 --- a/library/core/src/iter/sources/repeat_n.rs +++ b/library/core/src/iter/sources/repeat_n.rs @@ -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); @@ -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. |
