diff options
| author | bors <bors@rust-lang.org> | 2015-12-18 15:17:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-18 15:17:29 +0000 |
| commit | 33916307780495fe311fe9c080b330d266f35bfb (patch) | |
| tree | e4e5f3fcf28e4a7ca861ad3576747fb85795f9b8 /src/libsyntax/util | |
| parent | de62f9d885623318206620ddd2856a288ccd3ee4 (diff) | |
| parent | a8e424685cbf4db8fced2cee71f9d1b36e0dcf4b (diff) | |
| download | rust-33916307780495fe311fe9c080b330d266f35bfb.tar.gz rust-33916307780495fe311fe9c080b330d266f35bfb.zip | |
Auto merge of #30457 - Manishearth:rollup, r=Manishearth
- Successful merges: #30272, #30286, #30365, #30381, #30384, #30398, #30406, #30408, #30420, #30431, #30447, #30452 - Failed merges:
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)) } } |
