rust/src/compiletest
Aaron Turon 1bde6e3fcb Rename Iterator::len to count
This commit carries out the request from issue #14678:

> The method `Iterator::len()` is surprising, as all the other uses of
> `len()` do not consume the value. `len()` would make more sense to be
> called `count()`, but that would collide with the current
> `Iterator::count(|T| -> bool) -> unit` method. That method, however, is
> a bit redundant, and can be easily replaced with
> `iter.filter(|x| x < 5).count()`.
> After this change, we could then define the `len()` method
> on `iter::ExactSize`.

Closes #14678.

[breaking-change]
2014-06-06 19:51:31 -07:00
..
common.rs std: Rename {Eq,Ord} to Partial{Eq,Ord} 2014-05-30 15:52:24 -07:00
compiletest.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
errors.rs Change to_str().to_string() to just to_str() 2014-06-06 09:56:59 +02:00
header.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
procsrv.rs std: Rename strbuf operations to string 2014-05-27 12:59:31 -07:00
runtest.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
util.rs Change to_str().to_string() to just to_str() 2014-06-06 09:56:59 +02:00