-
Notifications
You must be signed in to change notification settings - Fork 13.4k
make #[unwind]
attribute specify expectations more clearly
#48380
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
a6cfafc
to
175619a
Compare
src/libsyntax/attr.rs
Outdated
Aborts, | ||
} | ||
|
||
/// Determine what `#[inline]` attribute is present in `attrs`, if any. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/inline/unwind/
d8287cf
to
2dadb12
Compare
You can now choose between the following: - `#[unwind(allowed)]` - `#[unwind(aborts)]` Per rust-lang#48251, the default is `#[unwind(allowed)]`, though I think we should change this eventually.
2dadb12
to
a47fd3d
Compare
@bors: r+ Thanks @nikomatsakis! I hope that soon this won't be necessary in the sense that users won't have to decorate apis with attributes in an on-demand fashion, but this is all unstable anyway so seems like a fine interim solution! |
📋 Looks like this PR is still in progress, ignoring approval |
#[unwind]
attribute specify expectations more clearly#[unwind]
attribute specify expectations more clearly
@bors r=acrichto |
📌 Commit 566c6ac has been approved by |
…acrichto Fixes rust-lang#47311. r? @nrc
Even with this PR, the logic in |
You can now choose between the following:
#[unwind(allowed)]
#[unwind(aborts)]
Per #48251, the default is
#[unwind(allowed)]
, thoughI think we should change this eventually.