Auto merge of #806 - varkor:patch-1, r=RalfJung

Fix `unused_must_use` inside `Box`

After https://github.com/rust-lang/rust/pull/62228, this will be linted against (and causes the test to fail). (This blocks https://github.com/rust-lang/rust/pull/62228.)
This commit is contained in:
bors 2019-06-30 15:07:03 +00:00
commit 72b2e1045d

View file

@ -21,7 +21,9 @@ pub enum Handler {
}
fn main() {
take(Handler::Default, Box::new(main));
#[allow(unused_must_use)] {
take(Handler::Default, Box::new(main));
}
}
#[inline(never)]