summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2021-01-21 22:35:05 -0500
committerFelix S. Klock II <pnkfelix@pnkfx.org>2021-02-04 21:29:49 -0500
commita71a81948074f7a3e2b5ce0dee3ad98fa22f793b (patch)
tree0222d8b0134ac0f0c5434d4308e4127ff96fc7b5 /library/alloc/src
parentdab3a80f235ed86d64d002e58b35adc3664e21a4 (diff)
downloadrust-a71a81948074f7a3e2b5ce0dee3ad98fa22f793b.tar.gz
rust-a71a81948074f7a3e2b5ce0dee3ad98fa22f793b.zip
Revert "Avoid leaking block expression values"
This reverts commit 4fef39113a514bb270f5661a82fdba17d3e41dbb.
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/btree/map/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/collections/btree/map/tests.rs b/library/alloc/src/collections/btree/map/tests.rs
index ba5a4442f56..cf6bf7c7c99 100644
--- a/library/alloc/src/collections/btree/map/tests.rs
+++ b/library/alloc/src/collections/btree/map/tests.rs
@@ -1882,7 +1882,7 @@ fn test_append_drop_leak() {
 
     catch_unwind(move || left.append(&mut right)).unwrap_err();
 
-    assert_eq!(DROPS.load(SeqCst), 5);
+    assert_eq!(DROPS.load(SeqCst), 4); // Rust issue #47949 ate one little piggy
 }
 
 #[test]