]> git.lizzy.rs Git - rust.git/commit
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)
commit44b964147e8bed485ff5993e86f8e32a5c915489
treef098d25452fff0b58de440222c7e3d9a006733dd
parent4dbfc8ddbfd091aefa4b0af674b6625378ce34fe
parenta21b7b3b162932011b83f4703fb87030c216e962
Rollup merge of #47780 - varkor:cross-file-errors-line-col, r=estebank

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).
src/librustc_errors/emitter.rs