fix errors in rustc_data_structures
This commit is contained in:
parent
e94b29065f
commit
1e2bd7021a
|
@ -255,7 +255,7 @@ impl<'a, A: Array> Drop for Drain<'a, A> {
|
|||
|
||||
if self.tail_len > 0 {
|
||||
unsafe {
|
||||
let source_array_vec = self.array_vec.as_mut();
|
||||
let source_array_vec: &mut ArrayVec<A> = self.array_vec.as_mut();
|
||||
// memmove back untouched tail, update to new length
|
||||
let start = source_array_vec.len();
|
||||
let tail = self.tail_start;
|
||||
|
|
Loading…
Reference in New Issue