Skip to content

Commit fbdc5fb

Browse files
committed
Auto merge of rust-lang#81257 - pnkfelix:issue-80949-short-term-resolution-via-revert-of-pr-78373, r=matthewjasper
Revert 78373 ("dont leak return value after panic in drop") Short term resolution for issue rust-lang#80949. Reopen rust-lang#47949 after this lands. (We plan to fine-tune PR rust-lang#78373 to not run into this problem.)
2 parents 4f2fec6 + fb6f6c7 commit fbdc5fb

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
@@ -1882,7 +1882,7 @@ fn test_append_drop_leak() {
18821882

18831883
catch_unwind(move || left.append(&mut right)).unwrap_err();
18841884

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

18881888
#[test]

0 commit comments

Comments
 (0)