about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-15 16:56:10 +0000
committerbors <bors@rust-lang.org>2018-12-15 16:56:10 +0000
commit44d3fb3ab2024f0f35568cadced296ba11220e9e (patch)
tree5eb6a523c684e01d99f08046d6613904e007b3d6 /src/liballoc
parent0a1b2267e45ed0a5bdbfcbe522024729c8bd1387 (diff)
parent3566812b041280af5a29056d36cdc516c3c14b94 (diff)
downloadrust-44d3fb3ab2024f0f35568cadced296ba11220e9e.tar.gz
rust-44d3fb3ab2024f0f35568cadced296ba11220e9e.zip
Auto merge of #56846 - pietroalbini:rollup, r=pietroalbini
Rollup of 7 pull requests

Successful merges:

 - #56677 (#[must_use] on traits in stdlib)
 - #56679 (overhaul external doc attribute diagnostics)
 - #56682 (Update the stdsimd submodule)
 - #56691 (fix install broken link)
 - #56710 (Always set the RDRAND and RDSEED features on SGX)
 - #56713 (Test capacity of ZST vector)
 - #56841 (Add some unit tests to compiletest)

Failed merges:

r? @ghost
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/tests/vec.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/liballoc/tests/vec.rs b/src/liballoc/tests/vec.rs
index e329b45a617..509195cd047 100644
--- a/src/liballoc/tests/vec.rs
+++ b/src/liballoc/tests/vec.rs
@@ -80,6 +80,11 @@ fn test_reserve() {
 }
 
 #[test]
+fn test_zst_capacity() {
+    assert_eq!(Vec::<()>::new().capacity(), usize::max_value());
+}
+
+#[test]
 fn test_extend() {
     let mut v = Vec::new();
     let mut w = Vec::new();