Files
rust/tests
Jonathan Brouwer 0dc3ef96b0 Rollup merge of #162874 - estebank:annotate-snippets-context, r=oli-obk
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
2026-09-17 16:51:00 +02:00
..