mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
std: Forward ExactSizeIterator::is_empty for Args, ArgsOs iterators
This commit is contained in:
parent
dd3e63aea5
commit
7ba762253c
@ -630,6 +630,7 @@ impl Iterator for Args {
|
||||
#[stable(feature = "env", since = "1.0.0")]
|
||||
impl ExactSizeIterator for Args {
|
||||
fn len(&self) -> usize { self.inner.len() }
|
||||
fn is_empty(&self) -> bool { self.inner.is_empty() }
|
||||
}
|
||||
|
||||
#[stable(feature = "env_iterators", since = "1.11.0")]
|
||||
@ -649,6 +650,7 @@ impl Iterator for ArgsOs {
|
||||
#[stable(feature = "env", since = "1.0.0")]
|
||||
impl ExactSizeIterator for ArgsOs {
|
||||
fn len(&self) -> usize { self.inner.len() }
|
||||
fn is_empty(&self) -> bool { self.inner.is_empty() }
|
||||
}
|
||||
|
||||
#[stable(feature = "env_iterators", since = "1.11.0")]
|
||||
|
@ -250,6 +250,7 @@
|
||||
#![feature(core_float)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(dropck_parametricity)]
|
||||
#![feature(exact_size_is_empty)]
|
||||
#![feature(float_extras)]
|
||||
#![feature(float_from_str_radix)]
|
||||
#![feature(fn_traits)]
|
||||
|
Loading…
Reference in New Issue
Block a user