Skip to content

Commit

Permalink
Rollup merge of rust-lang#120045 - scottmcm:unhide-repeat-n, r=Mark-S…
Browse files Browse the repository at this point in the history
…imulacrum

Un-hide `iter::repeat_n`

ACP accepted in rust-lang/libs-team#120 (comment)
  • Loading branch information
matthiaskrgr authored Jan 21, 2024
2 parents 695df12 + aa72e54 commit 9652b15
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/core/src/iter/sources/repeat_n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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.
Expand Down

0 comments on commit 9652b15

Please sign in to comment.