about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarkus Everling <markuseverling@gmail.com>2022-11-27 23:08:14 +0100
committerMarkus Everling <markuseverling@gmail.com>2022-11-27 23:15:55 +0100
commitb1c3c6380f5293b57cd2073908c84f2e270238ca (patch)
treec5cde97593b8109ff19fc6b9204275f79f71c8a0
parentcd68bd9baba18496ae8ecb9ac652d884ebc0b79d (diff)
downloadrust-b1c3c6380f5293b57cd2073908c84f2e270238ca.tar.gz
rust-b1c3c6380f5293b57cd2073908c84f2e270238ca.zip
Fix `pretty-std` test
-rw-r--r--src/test/debuginfo/pretty-std.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/debuginfo/pretty-std.rs b/src/test/debuginfo/pretty-std.rs
index d8c6344e0b6..7bb2810c2b2 100644
--- a/src/test/debuginfo/pretty-std.rs
+++ b/src/test/debuginfo/pretty-std.rs
@@ -138,7 +138,7 @@
 // cdb-command: dx vecdeque
 // cdb-check:vecdeque         : { len=0x2 } [Type: alloc::collections::vec_deque::VecDeque<i32,alloc::alloc::Global>]
 // cdb-check:    [<Raw View>]     [Type: alloc::collections::vec_deque::VecDeque<i32,alloc::alloc::Global>]
-// cdb-check:    [len]            : 0x2
+// cdb-check:    [len]            : 0x2 [Type: unsigned [...]]
 // cdb-check:    [capacity]       : 0x8 [Type: unsigned [...]]
 // cdb-check:    [0x0]            : 90 [Type: int]
 // cdb-check:    [0x1]            : 20 [Type: int]
@@ -175,7 +175,7 @@ fn main() {
     linkedlist.push_front(128);
 
     // VecDeque
-    let mut vecdeque = VecDeque::new();
+    let mut vecdeque = VecDeque::with_capacity(8);
     vecdeque.push_back(20);
     vecdeque.push_front(90);