Closed
Description
In particular catch_unwind
panics because of failing assert in
Line 289 in 266ecd6
For example:
struct Catch;
impl Drop for Catch {
fn drop(&mut self) {
let _ = std::panic::catch_unwind(|| {});
}
}
#[test]
#[should_panic]
fn it_works() {
let catch = Catch;
panic!("ups");
}
$ cargo test -Zbuild-std --target x86_64-unknown-linux-gnu
Compiling panic v0.1.0 (/.../panic)
Finished test [unoptimized + debuginfo] target(s) in 1.06s
Running target/x86_64-unknown-linux-gnu/debug/deps/panic-118296df2d538b47
running 1 test
thread panicked while panicking. aborting.
error: test failed, to rerun pass '--lib'
Caused by:
process didn't exit successfully: `/.../target/x86_64-unknown-linux-gnu/debug/deps/panic-118296df2d538b47` (signal: 4, SIGILL: illegal instruction)