allow(unused_must_use) in issue-23611-enum-swap-in-drop.rs
This commit is contained in:
parent
ccecae5fdd
commit
7fca9f809d
1 changed files with 2 additions and 1 deletions
|
|
@ -153,8 +153,9 @@ impl<'a> Drop for E<'a> {
|
|||
}
|
||||
};
|
||||
|
||||
#[allow(unused_must_use)]
|
||||
if do_drop {
|
||||
let _ = mem::replace(self, E::A(GaspA(f_a, 0xA3A0, log, D::new("drop", 6, log)), true));
|
||||
mem::replace(self, E::A(GaspA(f_a, 0xA3A0, log, D::new("drop", 6, log)), true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue