-
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
panic_bounds_check: use caller_location, like PanicFnLangItem #69850
Conversation
r? @KodrAus (rust_highfive has picked a reviewer for you, use r? to override) |
r? @Centril @bors try @rust-timer queue r=me with clean perf |
Awaiting bors try build completion |
panic_bounds_check: use caller_location, like PanicFnLangItem The `PanicFnLangItem` got switched to using `#[caller_location]` at some point, but `PanicBoundsCheckFnLangItem` was kept in the old style. For consistency, switch that one over to use `#[caller_location]` as well. This is also helpful for Miri as it means the `assert_panic` machine hook never needs to know the current `Span`.
☀️ Try build successful - checks-azure |
Queued 568fa7c with parent 2cb0b85, future comparison URL. |
Finished benchmarking try commit 568fa7c, comparison URL. |
Perf looks like noise to me. |
r? @eddyb |
7489d9c
to
0b2329d
Compare
@bors r+ |
📌 Commit 0b2329d has been approved by |
🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened |
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.
Nice!
Rollup of 8 pull requests Successful merges: - #66472 (--show-coverage json) - #69603 (tidy: replace `make check` with `./x.py test` in documentation) - #69760 (Improve expression & attribute parsing) - #69828 (fix memory leak when vec::IntoIter panics during drop) - #69850 (panic_bounds_check: use caller_location, like PanicFnLangItem) - #69876 (Add long error explanation for E0739) - #69888 ([Miri] Use a session variable instead of checking for an env var always) - #69893 (librustc_codegen_llvm: Use slices instead of 0-terminated strings) Failed merges: r? @ghost
The
PanicFnLangItem
got switched to using#[caller_location]
at some point, butPanicBoundsCheckFnLangItem
was kept in the old style. For consistency, switch that one over to use#[caller_location]
as well.This is also helpful for Miri as it means the
assert_panic
machine hook never needs to know the currentSpan
.