about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-08-30 11:42:16 +0200
committerljedrz <ljedrz@gmail.com>2018-09-26 10:43:37 +0200
commit130a32fa7259d348dc3a684b38e688da398c30bb (patch)
treefdac0e731215a273252f93254690a37d2c77fc25 /src/libsyntax/util
parentbeff387601fef141e7b6716a6cd50728d079a0c1 (diff)
downloadrust-130a32fa7259d348dc3a684b38e688da398c30bb.tar.gz
rust-130a32fa7259d348dc3a684b38e688da398c30bb.zip
Remove OneVector
Diffstat (limited to 'src/libsyntax/util')
-rw-r--r--src/libsyntax/util/move_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/move_map.rs b/src/libsyntax/util/move_map.rs
index eb2c5a2458c..51cae1b5d84 100644
--- a/src/libsyntax/util/move_map.rs
+++ b/src/libsyntax/util/move_map.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use std::ptr;
-use OneVector;
+use smallvec::{Array, SmallVec};
 
 pub trait MoveMap<T>: Sized {
     fn move_map<F>(self, mut f: F) -> Self where F: FnMut(T) -> T {
@@ -77,7 +77,7 @@ impl<T> MoveMap<T> for ::ptr::P<[T]> {
     }
 }
 
-impl<T> MoveMap<T> for OneVector<T> {
+impl<T, A: Array<Item = T>> MoveMap<T> for SmallVec<A> {
     fn move_flat_map<F, I>(mut self, mut f: F) -> Self
         where F: FnMut(T) -> I,
               I: IntoIterator<Item=T>