-
Notifications
You must be signed in to change notification settings - Fork 13.3k
bootstrap: t macro supresses real line number #137557
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
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Comments
(as for the actual error i encountered, it was just a spurious corrupted tarball) |
Yeah, that's being very confusing lately. Thanks for reporting. |
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
May 5, 2025
…ro, r=Kobzol implement `PanicTracker` to track `t` panics Trying to understand panics triggered by `t` macro is very exhausting (especially on CI failures) because it doesn't provide any information about where the macro was originally invoked. This change adds that missing information when an inner call inside the `t` macro panics. Resolves rust-lang#137557
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
May 6, 2025
Rollup merge of rust-lang#140636 - onur-ozkan:panic-tracker-for-t-macro, r=Kobzol implement `PanicTracker` to track `t` panics Trying to understand panics triggered by `t` macro is very exhausting (especially on CI failures) because it doesn't provide any information about where the macro was originally invoked. This change adds that missing information when an inner call inside the `t` macro panics. Resolves rust-lang#137557
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Summary
panics originating from the
t
macro will show./src/bootstrap/src/utils/helpers.rs:38:23
in their backtrace, rather than the actual line number,this is somewhat mitigated by it stringifying the argument expression, but could be further offset via use of the
line!
macro.The text was updated successfully, but these errors were encountered: