Skip to content

Commit

Permalink
suggestion from review
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
the8472 and RalfJung committed Apr 3, 2021
1 parent 3bd241f commit 572873f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/tests/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 572873f

Please sign in to comment.