diff options
Diffstat (limited to 'tests/unit/util/mem.rs')
-rw-r--r-- | tests/unit/util/mem.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/unit/util/mem.rs b/tests/unit/util/mem.rs index 4afbda00836..9b9ac4729e1 100644 --- a/tests/unit/util/mem.rs +++ b/tests/unit/util/mem.rs @@ -66,11 +66,6 @@ fn test_heap_size() { // An ascii string with 16 chars is 16 bytes in UTF-8. assert_eq!(String::from("0123456789abcdef").heap_size_of_children(), 16); - // … but RawVec::reserve gives twice the requested capacity. - let mut x = String::new(); - x.push_str("0123456789abcdef"); - assert_eq!(x.heap_size_of_children(), 32); - // Not on the heap. let x: Option<i32> = None; assert_eq!(x.heap_size_of_children(), 0); |