]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
src/librustc_driver/lib.rs
src/librustc_errors/emitter.rs
src/librustdoc/test.rs

Simple merge
Simple merge
Simple merge