-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Part of #59346
To properly handle macro spans in diagnostics output, we have to decouple some emitter.rs
code first.
Relevant FIXME
:
// FIXME(#59346): Add `fix_multispans_in_std_macros` function from emitter.rs |
emitter.rs
equivalent:
rust/src/librustc_errors/emitter.rs
Line 792 in 0e4a56b
fn fix_multispans_in_std_macros(&mut self, |
- We first have to decouple the
fix_multispans_in_std_macros
method fromEmitterWriter
so that the code can be re-used in
AnnotateSnippetEmitterWriter
without duplicating it.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.