about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-10-28 19:08:13 +0100
committerJorge Aparicio <jorge@japaric.io>2018-10-28 19:08:13 +0100
commitf67b4e07d861ae2c8317cbd644ec49a9d5720f80 (patch)
tree7b780f3cfba6a0c4d36be89a7afc1518c4fb9e05 /src
parent8255671ac83188f6ddd840461a8b853927a2842e (diff)
downloadrust-f67b4e07d861ae2c8317cbd644ec49a9d5720f80.tar.gz
rust-f67b4e07d861ae2c8317cbd644ec49a9d5720f80.zip
msp430: fix compilation of liballoc
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/collections/vec_deque.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs
index 571f35a2031..88e76033f27 100644
--- a/src/liballoc/collections/vec_deque.rs
+++ b/src/liballoc/collections/vec_deque.rs
@@ -36,6 +36,8 @@ use vec::Vec;
 
 const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
 const MINIMUM_CAPACITY: usize = 1; // 2 - 1
+#[cfg(target_pointer_width = "16")]
+const MAXIMUM_ZST_CAPACITY: usize = 1 << (16 - 1); // Largest possible power of two
 #[cfg(target_pointer_width = "32")]
 const MAXIMUM_ZST_CAPACITY: usize = 1 << (32 - 1); // Largest possible power of two
 #[cfg(target_pointer_width = "64")]