]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #66427 - Mark-Simulacrum:errors-json, r=Centril
authorMazdak Farrokhzad <twingoow@gmail.com>
Fri, 15 Nov 2019 17:02:02 +0000 (18:02 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2019 17:02:02 +0000 (18:02 +0100)
Move the JSON error emitter to librustc_errors

This is done both as a cleanup (it makes little sense for this emitter to be in libsyntax), but also as part of broader work to decouple Session from librustc itself.

Along the way, this also moves SourceMap to syntax_pos, which is also nice for the above reasons, as well as allowing dropping the SourceMapper trait from code. This had the unfortunate side-effect of moving `FatalError` to rustc_data_structures (it's needed in syntax_pos, due to SourceMap, but putting it there feels somehow worse).

1  2 
Cargo.lock

diff --cc Cargo.lock
Simple merge