about summary refs log tree commit diff
path: root/src/librustc_data_structures/array_vec.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-12 13:22:16 +0000
committerbors <bors@rust-lang.org>2017-04-12 13:22:16 +0000
commit910c4816fdee01a1299d11a5e85ebb4aceee6d1a (patch)
tree5413288c2a03b64c62c03782b194d28e2de37739 /src/librustc_data_structures/array_vec.rs
parent1dca19ae3fd195fa517e326a39bfee729da7cadb (diff)
parentd4d35cfecc7df36d62a0e6dbc66106657667c92e (diff)
downloadrust-910c4816fdee01a1299d11a5e85ebb4aceee6d1a.tar.gz
rust-910c4816fdee01a1299d11a5e85ebb4aceee6d1a.zip
Auto merge of #41246 - TimNN:rollup, r=TimNN
Rollup of 9 pull requests

- Successful merges: #41063, #41087, #41141, #41166, #41183, #41205, #41206, #41232, #41243
- Failed merges:
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