]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #47780 - varkor:cross-file-errors-line-col, r=estebank
authorkennytm <kennytm@gmail.com>
Tue, 30 Jan 2018 09:10:54 +0000 (17:10 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2018 09:10:54 +0000 (17:10 +0800)
Add line numbers and columns to error messages spanning multiple files

If an error message is emitted that spans several files, only the
primary file currently has line and column data attached. This is
useful information, even in files other than the one in which the error
occurs. We can often work out which line and column the error
corresponds to in other files — in this case it is helpful to add them
(in the case of ambiguity, the first relevant line/column is picked,
which is still helpful than none).

1  2 
src/librustc_errors/emitter.rs

Simple merge