rollup merge of #19832: japaric/no-nocopy

r? @aturon / @alexcrichton
This commit is contained in:
Alex Crichton
2014-12-17 08:34:09 -08:00
11 changed files with 19 additions and 48 deletions

View File

@@ -292,13 +292,11 @@ impl<T> SliceExt<T> for [T] {
if mem::size_of::<T>() == 0 {
MutItems{ptr: p,
end: (p as uint + self.len()) as *mut T,
marker: marker::ContravariantLifetime::<'a>,
marker2: marker::NoCopy}
marker: marker::ContravariantLifetime::<'a>}
} else {
MutItems{ptr: p,
end: p.offset(self.len() as int),
marker: marker::ContravariantLifetime::<'a>,
marker2: marker::NoCopy}
marker: marker::ContravariantLifetime::<'a>}
}
}
}
@@ -818,7 +816,6 @@ pub struct MutItems<'a, T: 'a> {
ptr: *mut T,
end: *mut T,
marker: marker::ContravariantLifetime<'a>,
marker2: marker::NoCopy
}
#[experimental]