about summary refs log tree commit diff
diff options
context:
space:
mode:
authorthe8472 <the8472@users.noreply.github.com>2021-04-04 01:38:58 +0200
committerGitHub <noreply@github.com>2021-04-04 01:38:58 +0200
commit572873fce0365cbba75557458ee5d7cb744bac12 (patch)
tree4d2a98b9dfff8b4fed42a9121a5191c277145d05
parent3bd241f95b6992d73f159c00551069e2c3424747 (diff)
downloadrust-572873fce0365cbba75557458ee5d7cb744bac12.tar.gz
rust-572873fce0365cbba75557458ee5d7cb744bac12.zip
suggestion from review
Co-authored-by: Ralf Jung <post@ralfj.de>
-rw-r--r--library/alloc/tests/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/tests/vec.rs b/library/alloc/tests/vec.rs
index 026d3f63bb7..cdd18520c59 100644
--- a/library/alloc/tests/vec.rs
+++ b/library/alloc/tests/vec.rs
@@ -1091,7 +1091,7 @@ fn test_from_iter_specialization_panic_during_drop_leaks() {
     assert_eq!(unsafe { DROP_COUNTER }, 1);
     // clean up the leak to keep miri happy
     unsafe {
-        Vec::from_raw_parts(to_free, 0, cap);
+        drop(Vec::from_raw_parts(to_free, 0, cap));
     }
 }