]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45752 - estebank:highlight-primary, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 31 Jan 2018 07:53:57 +0000 (07:53 +0000)
committerbors <bors@rust-lang.org>
Wed, 31 Jan 2018 07:53:57 +0000 (07:53 +0000)
commit560a2f4faf4828ba5f48fe2bd7709265c2f5354d
tree14d4693f6908a4f3f7ece6cf63c00cff4d540a9b
parentb8f2674ea47f4f3cf5d90d0428bf8b8025d7f8d8
parent08287c1e26c6faa18c145a8a794fdd25408217a4
Auto merge of #45752 - estebank:highlight-primary, r=nikomatsakis

Highlight code on diagnostics when underlined

Highlight the label's span with the respective color:

<img width="692" alt="" src="https://user-images.githubusercontent.com/1606434/32411026-a1842482-c18d-11e7-9933-6510eefbad19.png">

Fix #42112.
src/librustc_driver/lib.rs
src/librustc_errors/emitter.rs
src/librustdoc/test.rs