Skip to content

Commit 572873f

Browse files
the8472RalfJung
andauthored
suggestion from review
Co-authored-by: Ralf Jung <[email protected]>
1 parent 3bd241f commit 572873f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/tests/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ fn test_from_iter_specialization_panic_during_drop_leaks() {
10911091
assert_eq!(unsafe { DROP_COUNTER }, 1);
10921092
// clean up the leak to keep miri happy
10931093
unsafe {
1094-
Vec::from_raw_parts(to_free, 0, cap);
1094+
drop(Vec::from_raw_parts(to_free, 0, cap));
10951095
}
10961096
}
10971097

0 commit comments

Comments
 (0)