about summary refs log tree commit diff
path: root/src/librustc_data_structures/array_vec.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo.net>2017-04-05 13:00:17 +0200
committerMichael Woerister <michaelwoerister@posteo.net>2017-04-12 11:42:15 +0200
commitbc7af816f3b8712efa4e6643f9cdeb1d5ba5c78a (patch)
tree0bbca767d33bb89337e1d5c58c58c788bebe0b32 /src/librustc_data_structures/array_vec.rs
parentc008cd70f5cb20cf22eb2cc9ae12f978296e8a45 (diff)
downloadrust-bc7af816f3b8712efa4e6643f9cdeb1d5ba5c78a.tar.gz
rust-bc7af816f3b8712efa4e6643f9cdeb1d5ba5c78a.zip
ICH: Hash everything that gets encoded into crate metadata.
Diffstat (limited to 'src/librustc_data_structures/array_vec.rs')
-rw-r--r--src/librustc_data_structures/array_vec.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_data_structures/array_vec.rs b/src/librustc_data_structures/array_vec.rs
index adb22197226..848e5a076bb 100644
--- a/src/librustc_data_structures/array_vec.rs
+++ b/src/librustc_data_structures/array_vec.rs
@@ -40,6 +40,12 @@ unsafe impl<T> Array for [T; 8] {
     const LEN: usize = 8;
 }
 
+unsafe impl<T> Array for [T; 32] {
+    type Element = T;
+    type PartialStorage = [ManuallyDrop<T>; 32];
+    const LEN: usize = 32;
+}
+
 pub struct ArrayVec<A: Array> {
     count: usize,
     values: A::PartialStorage