diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-12-16 21:44:33 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-12-18 00:52:56 +0300 |
| commit | 0d298f9904468b8f668cb9b505c19d64fdeb7633 (patch) | |
| tree | 7e65ebcb1ef74ec027cf31b2135b92f3a80e99ac /src/libsyntax/util | |
| parent | 09d4a436a748a39f13d2d6d6c6ba56a885bb0d0c (diff) | |
| download | rust-0d298f9904468b8f668cb9b505c19d64fdeb7633.tar.gz rust-0d298f9904468b8f668cb9b505c19d64fdeb7633.zip | |
Deprecate name `OwnedSlice` and don't use it
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/move_map.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/util/move_map.rs b/src/libsyntax/util/move_map.rs index 95c24c66630..e1078b719bf 100644 --- a/src/libsyntax/util/move_map.rs +++ b/src/libsyntax/util/move_map.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use owned_slice::OwnedSlice; - use std::ptr; pub trait MoveMap<T>: Sized { @@ -69,11 +67,11 @@ impl<T> MoveMap<T> for Vec<T> { } } -impl<T> MoveMap<T> for OwnedSlice<T> { +impl<T> MoveMap<T> for ::ptr::P<[T]> { fn move_flat_map<F, I>(self, f: F) -> Self where F: FnMut(T) -> I, I: IntoIterator<Item=T> { - OwnedSlice::from_vec(self.into_vec().move_flat_map(f)) + ::ptr::P::from_vec(self.into_vec().move_flat_map(f)) } } |
