about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-03 14:27:01 +0200
committerGitHub <noreply@github.com>2019-09-03 14:27:01 +0200
commit586aeb4c9d96b60c834398b72b13ce3d46a1c91e (patch)
tree5685e1149ace3ab43eefa5ceb148ba1700397bfb /src/libsyntax/parse/parser
parent56d00e388b3e55352340b5c2235992fdaf1d26d7 (diff)
parent84ccbe2076cf37bc13c32a89ccc57a57281b8708 (diff)
downloadrust-586aeb4c9d96b60c834398b72b13ce3d46a1c91e.tar.gz
rust-586aeb4c9d96b60c834398b72b13ce3d46a1c91e.zip
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
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions