]> git.lizzy.rs Git - rust.git/commit
Auto merge of #65779 - kevgrasso:E0308highlight, r=estebank
authorbors <bors@rust-lang.org>
Sun, 3 Nov 2019 08:01:29 +0000 (08:01 +0000)
committerbors <bors@rust-lang.org>
Sun, 3 Nov 2019 08:01:29 +0000 (08:01 +0000)
commitaa51f04073bf30b8f8815a9526722db823d8911d
treeae17fae77e7770f76b908ace8c440e62b9473de3
parent6c1b220fd747bf244f04b380e4d4ae005068f706
parent2337bbb8a4131645e4a98ad81524703d76196f82
Auto merge of #65779 - kevgrasso:E0308highlight, r=estebank

Highlight only relevant parts of type path in type errors

Resolves #57413.

Unfortunately the current Rust UI testing setup can't test that the correct colors are being used in a given output, so here's a screenshot of a small test program I wrote:
![image](https://user-images.githubusercontent.com/480789/67530063-f272af00-f68b-11e9-9f96-a211fc7666d4.png)
src/librustc/infer/error_reporting/mod.rs
src/librustc_errors/diagnostic.rs