]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #61191 - phansch:annotate_snippet_refactorings1, r=estebank
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 29 May 2019 06:15:56 +0000 (08:15 +0200)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 06:15:56 +0000 (08:15 +0200)
commit01c3ca12bc3a27ff5850ee08838ed83ee91dc4d1
tree0765b1b40830020e142a7b97fd9a729e0218d4e4
parentf0ea975a1c3be46d5ef6f84f7bc01fd89cc936af
parent96e3fb255bfcae8ce7210985bf75e77335d22580
Rollup merge of #61191 - phansch:annotate_snippet_refactorings1, r=estebank

librustc_errors: Move annotation collection to own impl

Extracted from work on #59346. This moves the annotation collection to
the `FileWithAnnotatedLines` impl to allow easier re-use in a separate
EmitterWriter. Even without that new EmitterWriter present, I think it makes
sense to have this as an associated function.