VecDeque
leaks remaining content when one destructor panics
#67232
Labels
A-collections
Area: `std::collection`
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
STR:
Output:
Caused by the
Drop
impl ofVecDeque
:rust/src/liballoc/collections/vec_deque.rs
Lines 146 to 154 in 90b957a
Apparently
drop_in_place
will continue dropping elements when one destructor panics. That doesn't carry over to the second call, of course.The text was updated successfully, but these errors were encountered: