impl<T> *const T, impl<T> *mut T

This commit is contained in:
Jorge Aparicio
2015-03-10 23:13:36 -05:00
parent 633c593bc3
commit 8afcaabee3
14 changed files with 135 additions and 0 deletions

View File

@@ -935,6 +935,7 @@ impl<'a> Reader for &'a mut (Reader+'a) {
// API yet. If so, it should be a method on Vec.
unsafe fn slice_vec_capacity<'a, T>(v: &'a mut Vec<T>, start: uint, end: uint) -> &'a mut [T] {
use slice;
#[cfg(stage0)]
use ptr::PtrExt;
assert!(start <= end);