Skip to content

Commit ed688ec

Browse files
committed
Add iter_at_least and iter_at_most feature flags
1 parent 3b1bad1 commit ed688ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/core/src/iter/traits/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ pub trait Iterator {
23102310
/// assert_eq!(iter.next(), Some(&2));
23112311
/// ```
23122312
#[inline]
2313-
#[unstable(feature = "at_least", reason = "new API", issue = "none")]
2313+
#[unstable(feature = "iter_at_least", reason = "new API", issue = "none")]
23142314
fn at_least<F>(&mut self, n: usize, f: F) -> bool
23152315
where
23162316
Self: Sized,
@@ -2379,7 +2379,7 @@ pub trait Iterator {
23792379
/// assert_eq!(iter.next(), Some(&3));
23802380
/// ```
23812381
#[inline]
2382-
#[unstable(feature = "at_most", reason = "new API", issue = "none")]
2382+
#[unstable(feature = "iter_at_most", reason = "new API", issue = "none")]
23832383
fn at_most<F>(&mut self, n: usize, f: F) -> bool
23842384
where
23852385
Self: Sized,

library/core/tests/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
#![feature(integer_atomics)]
7878
#![feature(slice_group_by)]
7979
#![feature(trusted_random_access)]
80+
#![feature(iter_at_least)]
81+
#![feature(iter_at_most)]
8082
#![deny(unsafe_op_in_unsafe_fn)]
8183

8284
extern crate test;

0 commit comments

Comments
 (0)