Skip to content

Commit

Permalink
fix errors in rustc_data_structures
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeyhew committed Dec 22, 2017
1 parent e94b290 commit 1e2bd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_data_structures/array_vec.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 1e2bd70

Please sign in to comment.