Skip to content

Commit af04420

Browse files
committed
Auto merge of #1420 - RalfJung:rustup, r=RalfJung
rustup adjust test for changed allocation strategy
2 parents ac09e2f + cc1a211 commit af04420

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
84539360498cab3c70a7c9114c0b8106c8e1b06b
1+
672b272077561ca7b5027a8aff9ea2957c7d4c21

tests/run-pass/heap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ fn allocate_reallocate() {
1414
// 6 byte heap alloc (__rust_allocate)
1515
s.push_str("foobar");
1616
assert_eq!(s.len(), 6);
17-
assert_eq!(s.capacity(), 6);
17+
assert_eq!(s.capacity(), 8);
1818

1919
// heap size doubled to 12 (__rust_reallocate)
2020
s.push_str("baz");
2121
assert_eq!(s.len(), 9);
22-
assert_eq!(s.capacity(), 12);
22+
assert_eq!(s.capacity(), 16);
2323

2424
// heap size reduced to 9 (__rust_reallocate)
2525
s.shrink_to_fit();

0 commit comments

Comments
 (0)