diff options
| author | bors <bors@rust-lang.org> | 2014-11-08 21:06:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-08 21:06:37 +0000 |
| commit | f0ca717c643cbef31859e443ee20db4465ac8864 (patch) | |
| tree | 05190af84acccdfc795368a8e2431ab3f43038b5 /src/libsyntax | |
| parent | b80edf1d1257bf521fd9e62b732b6302258374e7 (diff) | |
| parent | a11f16739f08ec480263ba549d510fffc8ce557e (diff) | |
| download | rust-f0ca717c643cbef31859e443ee20db4465ac8864.tar.gz rust-f0ca717c643cbef31859e443ee20db4465ac8864.zip | |
auto merge of #18475 : gamazeps/rust/toExtend, r=alexcrichton
Ensured that Extend & FromIterator are implemented for the libcollection. Removed the fact that FromIterator had to be implemented in order to implement Extend, as it did not make sense for LruCache (it needs to be given a size and there are no Default for LruCache). Changed the name from Extend to Extendable. Part of #18424
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/util/small_vector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/small_vector.rs b/src/libsyntax/util/small_vector.rs index 56ee6c7b915..8aba0014e97 100644 --- a/src/libsyntax/util/small_vector.rs +++ b/src/libsyntax/util/small_vector.rs @@ -33,7 +33,7 @@ impl<T> FromIterator<T> for SmallVector<T> { } } -impl<T> Extendable<T> for SmallVector<T> { +impl<T> Extend<T> for SmallVector<T> { fn extend<I: Iterator<T>>(&mut self, mut iter: I) { for val in iter { self.push(val); |
