-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Add std::panic::propagate #30557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add std::panic::propagate #30557
Conversation
Should this be attached to recover's tracking issue or have its own? |
@@ -172,7 +172,7 @@ pub fn panicking() -> bool { | |||
#[inline(never)] | |||
#[no_mangle] | |||
#[allow(private_no_mangle_fns)] |
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.
presumably can remove this allow if the fn is becoming public?
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.
Possibly - not sure how deeply that lint looks. This function is now public within its module, but not public outside of the crate.
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.
You're right, still required: http://is.gd/Z4qyRE
On Fri, Dec 25, 2015 at 8:37 PM, Steven Fackler [email protected]
wrote:
In src/libstd/sys/common/unwind/mod.rs
#30557 (comment):@@ -172,7 +172,7 @@ pub fn panicking() -> bool {
#[inline(never)]
#[no_mangle]
#[allow(private_no_mangle_fns)]Possibly - not sure how deeply that lint looks. This function is now
public within its module, but not public outside of the crate.—
Reply to this email directly or view it on GitHub
https://github.com/rust-lang/rust/pull/30557/files#r48444144.
cc @rust-lang/libs |
/// panic::propagate(err); | ||
/// } | ||
/// ``` | ||
#[unstable(feature = "panic_propagate", reason = "awaiting feedback", issue = "0")] |
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.
This should have an actual issue before it lands.
23d5903
to
022c9c7
Compare
@bors r=aturon We discussed this during libs triage today and are okay with it. |
📌 Commit 022c9c7 has been approved by |
See rust-lang/rfcs#1413.
r? @alexcrichton