mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 17:36:20 +00:00
Add support for `annotate_snippets::snippet::AnnotationKind::Visible` `annotate-snippets-rs` supports pointing at `Span`s without an underline. Start using that feature in `rustc`. We currently use secondary span labels with no text to point at context that should appear in the diagnostic, but that are merely context. This change removes the underline from some `Span`s while retaining the code being rendered, reducing the number of lines being printed to the terminal marginally. CC @Muscraft