about summary refs log tree commit diff
path: root/src/librustc_data_structures/array_vec.rs
diff options
context:
space:
mode:
authorMichael Hewson <michael@michaelhewson.ca>2017-12-22 18:16:19 -0500
committerMichael Hewson <michael@michaelhewson.ca>2017-12-22 18:16:19 -0500
commit1e2bd7021acc7d2243a164d75ac8d2fc05ed4513 (patch)
tree35574be2350f56d8aa949d8398153a5c0c97ea23 /src/librustc_data_structures/array_vec.rs
parente94b29065fab8da9530029f810306da1797810a1 (diff)
downloadrust-1e2bd7021acc7d2243a164d75ac8d2fc05ed4513.tar.gz
rust-1e2bd7021acc7d2243a164d75ac8d2fc05ed4513.zip
fix errors in rustc_data_structures
Diffstat (limited to 'src/librustc_data_structures/array_vec.rs')
-rw-r--r--src/librustc_data_structures/array_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/array_vec.rs b/src/librustc_data_structures/array_vec.rs
index 1b39e029604..c107b4a539a 100644
--- a/src/librustc_data_structures/array_vec.rs
+++ b/src/librustc_data_structures/array_vec.rs
@@ -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;