mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
586aeb4c9d
librustc_errors: Extract sugg/subst handling into method An initial refactoring before working on #61809. This moves the whole block into a method so that it can be reused in the annotate-snippet emitter. The method is already used in the new emitter, but there's no UI tests with suggestions included in this PR. A first look at some UI tests with suggestions showed that there's some more work to do in [annotate-snippet-rs][annotate-snippet-rs] before the new output is closer to the current one, so I opted to do that in a second step. r? @estebank [annotate-snippet-rs]: https://github.com/rust-lang/annotate-snippets-rs |
||
---|---|---|
.. | ||
annotate_snippet_emitter_writer.rs | ||
Cargo.toml | ||
diagnostic_builder.rs | ||
diagnostic.rs | ||
emitter.rs | ||
lib.rs | ||
lock.rs | ||
registry.rs | ||
snippet.rs | ||
styled_buffer.rs |