Skip to content

Commit a266bd4

Browse files
committed
Auto merge of rust-lang#78373 - matthewjasper:drop-on-into, r=pnkfelix
Don't leak return value after panic in drop Closes rust-lang#47949
2 parents 49e4dda + 1abbb20 commit a266bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/collections/btree/map/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ fn test_append_drop_leak() {
17721772

17731773
catch_unwind(move || left.append(&mut right)).unwrap_err();
17741774

1775-
assert_eq!(DROPS.load(SeqCst), 4); // Rust issue #47949 ate one little piggy
1775+
assert_eq!(DROPS.load(SeqCst), 5);
17761776
}
17771777

17781778
#[test]

0 commit comments

Comments
 (0)