When error from local macro, include macro def span - #161051
Conversation
|
cc @Muscraft |
|
r? @adwinwhite rustbot has assigned @adwinwhite. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1f00b5c to
8abeab8
Compare
|
cc @rust-lang/miri
cc @rust-lang/clippy |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
8abeab8 to
224b072
Compare
05444dc to
6df7b96
Compare
This comment has been minimized.
This comment has been minimized.
6df7b96 to
54aa034
Compare
This comment has been minimized.
This comment has been minimized.
- mention `-Zmacro-backtrace` only for non-local macros - include span for local macro encompassing error
54aa034 to
f1e9e5e
Compare
|
@bors r+ |
…hite When error from local macro, include macro def span - mention `-Zmacro-backtrace` only for non-local macros - include span for local macro encompassing error
Rollup of 15 pull requests Successful merges: - #161051 (When error from local macro, include macro def span) - #162750 (add case mapping fast paths for Latin-1) - #162831 (Do not continue past `rustc_resolve` when encountering duplicated items) - #162835 (rustdoc: account for nested parens and split text events in bare urls lint) - #163044 (Report runtime range endpoints for runtime values) - #163062 (Use x30 register name with LLVM 23+) - #158102 (When compiling without a specified `--edition`, emit a note) - #162984 (Windows: don't error if `access_mode` is set on `OpenOptions`) - #163005 (Avoid unreachable integer underflow check in `CStr::count_bytes()`) - #163019 (Prepare for the introduction of forced keywords (`k#`)) - #163020 (Dir: fix fallback impl for remove_dir) - #163047 (Use verbose suggestion for `mut binding` instead of `&mut binding`) - #163075 (Fix ArgAttributes mismatches in ABI UI tests for LoongArch64 and RiscV64) - #163079 (enable `f128` from `u64`/`i64` test) - #163082 (Remove `TypeChecker::root_cx`)
…hite When error from local macro, include macro def span - mention `-Zmacro-backtrace` only for non-local macros - include span for local macro encompassing error
…uwer Rollup of 18 pull requests Successful merges: - #161051 (When error from local macro, include macro def span) - #161629 (Streamline `StateDiffCollector`) - #162750 (add case mapping fast paths for Latin-1) - #162831 (Do not continue past `rustc_resolve` when encountering duplicated items) - #162835 (rustdoc: account for nested parens and split text events in bare urls lint) - #162952 (Depend on lockfiles to prevent GC of the current session) - #163044 (Report runtime range endpoints for runtime values) - #163062 (Use x30 register name with LLVM 23+) - #158102 (When compiling without a specified `--edition`, emit a note) - #162939 (Declare multi-kind constants for MacroKinds) - #162984 (Windows: don't error if `access_mode` is set on `OpenOptions`) - #163005 (Avoid unreachable integer underflow check in `CStr::count_bytes()`) - #163019 (Prepare for the introduction of forced keywords (`k#`)) - #163020 (Dir: fix fallback impl for remove_dir) - #163047 (Use verbose suggestion for `mut binding` instead of `&mut binding`) - #163075 (Fix ArgAttributes mismatches in ABI UI tests for LoongArch64 and RiscV64) - #163079 (enable `f128` from `u64`/`i64` test) - #163082 (Remove `TypeChecker::root_cx`)
|
⌛ Testing commit f1e9e5e with merge 9dc0b07... Workflow: https://github.com/rust-lang/rust/actions/runs/35576979212 |
When error from local macro, include macro def span - mention `-Zmacro-backtrace` only for non-local macros - include span for local macro encompassing error
|
@bors yield |
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #163095. |
…uwer Rollup of 19 pull requests Successful merges: - #161051 (When error from local macro, include macro def span) - #161629 (Streamline `StateDiffCollector`) - #162750 (add case mapping fast paths for Latin-1) - #162831 (Do not continue past `rustc_resolve` when encountering duplicated items) - #162835 (rustdoc: account for nested parens and split text events in bare urls lint) - #162952 (Depend on lockfiles to prevent GC of the current session) - #163044 (Report runtime range endpoints for runtime values) - #163062 (Use x30 register name with LLVM 23+) - #163091 (miri subtree update) - #162939 (Declare multi-kind constants for MacroKinds) - #162984 (Windows: don't error if `access_mode` is set on `OpenOptions`) - #163005 (Avoid unreachable integer underflow check in `CStr::count_bytes()`) - #163019 (Prepare for the introduction of forced keywords (`k#`)) - #163020 (Dir: fix fallback impl for remove_dir) - #163041 (Be more explicit on suggestion type without changing how they are rendered) - #163047 (Use verbose suggestion for `mut binding` instead of `&mut binding`) - #163075 (Fix ArgAttributes mismatches in ABI UI tests for LoongArch64 and RiscV64) - #163079 (enable `f128` from `u64`/`i64` test) - #163082 (Remove `TypeChecker::root_cx`)
Rollup merge of #161051 - estebank:macro_backtrace, r=adwinwhite When error from local macro, include macro def span - mention `-Zmacro-backtrace` only for non-local macros - include span for local macro encompassing error
|
Note This PR was benchmarked as part of triage of its containing rollup: triage URL. Finished benchmarking commit (57e3e66): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: missing data |
…uwer Rollup of 19 pull requests Successful merges: - rust-lang/rust#161051 (When error from local macro, include macro def span) - rust-lang/rust#161629 (Streamline `StateDiffCollector`) - rust-lang/rust#162750 (add case mapping fast paths for Latin-1) - rust-lang/rust#162831 (Do not continue past `rustc_resolve` when encountering duplicated items) - rust-lang/rust#162835 (rustdoc: account for nested parens and split text events in bare urls lint) - rust-lang/rust#162952 (Depend on lockfiles to prevent GC of the current session) - rust-lang/rust#163044 (Report runtime range endpoints for runtime values) - rust-lang/rust#163062 (Use x30 register name with LLVM 23+) - rust-lang/rust#163091 (miri subtree update) - rust-lang/rust#162939 (Declare multi-kind constants for MacroKinds) - rust-lang/rust#162984 (Windows: don't error if `access_mode` is set on `OpenOptions`) - rust-lang/rust#163005 (Avoid unreachable integer underflow check in `CStr::count_bytes()`) - rust-lang/rust#163019 (Prepare for the introduction of forced keywords (`k#`)) - rust-lang/rust#163020 (Dir: fix fallback impl for remove_dir) - rust-lang/rust#163041 (Be more explicit on suggestion type without changing how they are rendered) - rust-lang/rust#163047 (Use verbose suggestion for `mut binding` instead of `&mut binding`) - rust-lang/rust#163075 (Fix ArgAttributes mismatches in ABI UI tests for LoongArch64 and RiscV64) - rust-lang/rust#163079 (enable `f128` from `u64`/`i64` test) - rust-lang/rust#163082 (Remove `TypeChecker::root_cx`)
|
This looks like it's a diagnostic change which is sort of a correctness fix; Marking as triaged. |
|
@Mark-Simulacrum to be clear, it would be ok to revert. It also makes sense that syn would be most affected (but should only happen once errors are actually emitted, not in the happy path...) |
-Zmacro-backtraceonly for non-local macros