std: Forward ExactSizeIterator::is_empty for Args, ArgsOs iterators

This commit is contained in:
Ulrik Sverdrup 2016-12-03 21:59:00 +01:00
parent dd3e63aea5
commit 7ba762253c
2 changed files with 3 additions and 0 deletions

View File

@ -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")]

View File

@ -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)]