]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #33619 - jonathandturner:improve_structured_errors, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sun, 15 May 2016 22:08:46 +0000 (15:08 -0700)
committerbors <bors@rust-lang.org>
Sun, 15 May 2016 22:08:46 +0000 (15:08 -0700)
Batch of improvements to errors for new error format

This is a batch of improvements to existing errors to help get the most out of the new error format.

* Added labels to primary spans (^^^) for a set of errors that didn't currently have them
* Highlight the source blue under the secondary notes for better readability
* Move some of the "Note:" into secondary spans+labels
* Fix span_label to take &mut instead, which makes it work the same as other methods in that set

1  2 
src/librustc_resolve/lib.rs
src/librustc_typeck/lib.rs
src/libsyntax/errors/snippet/mod.rs

Simple merge
Simple merge
Simple merge