annotate-snippet emitter: Deal with multispans in macros correctly #61810
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Part of #59346
To properly handle macro spans in diagnostics output, we have to decouple some
emitter.rs
code first.Relevant
FIXME
:rust/src/librustc_errors/annotate_snippet_emitter_writer.rs
Line 38 in 57a3300
emitter.rs
equivalent:rust/src/librustc_errors/emitter.rs
Line 792 in 0e4a56b
fix_multispans_in_std_macros
method from
EmitterWriter
so that the code can be re-used inAnnotateSnippetEmitterWriter
without duplicating it.The text was updated successfully, but these errors were encountered: