Skip to content

Fix panic line numbers #3492

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

illicitonion
Copy link
Collaborator

Without this patch, line numbers are missing for first-party code in panic traces.

This reverts part of #1563 but keeps the test showing we have a relative path not an absolute one, and adds an integration test showing that line numbers are correctly reported in panic traces.

As far as I know, path remapping has been improved in rustc over the last few years, so maybe the behaviour reported in that patch has been fixed.

Closes #3476

Without this patch, line numbers are missing for first-party code in
panic traces.

This reverts part of bazelbuild#1563 but keeps the test showing we have a relative
path not an absolute one, and adds an integration test showing that line
numbers are correctly reported in panic traces.

As far as I know, path remapping has been improved in rustc over the
last few years, so maybe the behaviour reported in that patch has been
fixed.
@illicitonion illicitonion requested a review from UebelAndre July 2, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current implementation of remap_path_prefix breaks debugging on macOS
2 participants