-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
I would expect the following code to abort, and never print Hello
:
#![feature(unwind_attributes)]
#[unwind(aborts)]
fn foo() { // implicitly: extern "Rust"
panic!("foooo");
}
fn main() {
if let Err(_) = std::panic::catch_unwind(|| foo()) {}
println!("Hello");
}
But instead, the unwind
attribute is ignored.
Cc @gnzlbg
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.