-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Implement Rust 2021 panic #80851
Implement Rust 2021 panic #80851
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I don't think this will require any Miri changes - all of the Miri panic logic/hooks occur much deeper into the panic code. |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Finished benchmarking try commit (18bbe6416d2f0b96850a82cf214a118ca792bc4c): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Not sure who would be the right reviewer for this. Pinging some people whose names I saw in related |
This comment has been minimized.
This comment has been minimized.
f5d9853
to
4b47a4a
Compare
📌 Commit 5b11a97 has been approved by |
⌛ Testing commit 5b11a97 with merge e5451054558902869b7121a3c2f0c1cc180283ad... |
@bors retry yielding |
☀️ Test successful - checks-actions |
Implement Rust 2021 panic This implements the Rust 2021 versions of `panic!()`. See rust-lang#80162 and rust-lang/rfcs#3007. It does so by replacing `{std, core}::panic!()` by a bulitin macro that expands to either `$crate::panic::panic_2015!(..)` or `$crate::panic::panic_2021!(..)` depending on the edition of the caller. This does not yet make std's panic an alias for core's panic on Rust 2021 as the RFC proposes. That will be a separate change: rust-lang@c5273bd That change is blocked on figuring out what to do with rust-lang#80846 first.
This is a minor point but we can no longer tell apart |
@Aurel300 On Rust 2015 and 2018, nothing should've changed there other than an extra |
I would have expected it to, yes, but maybe it is inlined somehow? The
Edit: even with |
Can you open a new issue for this? Comments on an already merged PR tend to get lost easily. |
This implements the Rust 2021 versions of
panic!()
. See #80162 and rust-lang/rfcs#3007.It does so by replacing
{std, core}::panic!()
by a bulitin macro that expands to either$crate::panic::panic_2015!(..)
or$crate::panic::panic_2021!(..)
depending on the edition of the caller.This does not yet make std's panic an alias for core's panic on Rust 2021 as the RFC proposes. That will be a separate change: c5273bd That change is blocked on figuring out what to do with #80846 first.