Apply review feedback

This commit is contained in:
Amanieu d'Antras 2020-01-07 16:41:59 +01:00
parent 35349abeb3
commit 01d04944ce
12 changed files with 40 additions and 68 deletions

View file

@ -1,24 +0,0 @@
// run-pass
// compile-flags: -Z no-landing-pads -C codegen-units=1
// ignore-emscripten no threads support
// ignore-test fails because catch_unwind doesn't work with no-landing-pads
use std::thread;
static mut HIT: bool = false;
struct A;
impl Drop for A {
fn drop(&mut self) {
unsafe { HIT = true; }
}
}
fn main() {
thread::spawn(move|| -> () {
let _a = A;
panic!();
}).join().unwrap_err();
assert!(unsafe { !HIT });
}