Skip to content

Commit 7fca9f8

Browse files
committed
allow(unused_must_use) in issue-23611-enum-swap-in-drop.rs
1 parent ccecae5 commit 7fca9f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/ui/issues/issue-23611-enum-swap-in-drop.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ impl<'a> Drop for E<'a> {
153153
}
154154
};
155155

156+
#[allow(unused_must_use)]
156157
if do_drop {
157-
let _ = mem::replace(self, E::A(GaspA(f_a, 0xA3A0, log, D::new("drop", 6, log)), true));
158+
mem::replace(self, E::A(GaspA(f_a, 0xA3A0, log, D::new("drop", 6, log)), true));
158159
}
159160
}
160161
}

0 commit comments

Comments
 (0)