rust/src/librustc_errors
Mazdak Farrokhzad 586aeb4c9d
Rollup merge of #64058 - phansch:refactor_out_method, r=estebank
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
2019-09-03 14:27:01 +02:00
..
annotate_snippet_emitter_writer.rs librustc_errors: Extract sugg/subst handling into method 2019-09-01 13:05:47 +02:00
Cargo.toml Introduce term-size dependency and consider term width when trimming 2019-08-21 11:56:20 -07:00
diagnostic_builder.rs Emit dropped unemitted errors to aid in ICE debugging 2019-07-11 16:59:19 -07:00
diagnostic.rs remove unused Level::PhaseFatal 2019-08-14 22:22:46 +03:00
emitter.rs Rollup merge of #64058 - phansch:refactor_out_method, r=estebank 2019-09-03 14:27:01 +02:00
lib.rs Add terminal_width debugging flag 2019-08-21 11:58:24 -07:00
lock.rs Make use of ptr::null(_mut) instead of casting zero 2019-06-17 10:52:46 +00:00
registry.rs Remove licenses 2018-12-25 21:08:33 -07:00
snippet.rs librustc_errors: Remove unused annotation style OldSchoolNoteText 2019-05-23 08:01:38 +02:00
styled_buffer.rs librustc_errors => 2018 2019-02-07 03:53:01 +09:00