Closed
Description
Part of #59346
To properly handle macro spans in diagnostics output, we have to decouple some emitter.rs
code first.
Relevant FIXME
:
emitter.rs
equivalent:
rust/src/librustc_errors/emitter.rs
Line 792 in 0e4a56b
- 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.