]> git.lizzy.rs Git - rust.git/commit
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)
commitae0c8b5f09f101d854bb5cb7fa9025053c394339
tree169d70f9a0c32adf26e6f1401a6e6b9e2f02b8f0
parent4e6e1eccf1e512d1dee42ddad007b94f17b6e2de
parentc31a8754e3f3a9274759cb429aad4ae594d39e29
Rollup merge of #66427 - Mark-Simulacrum:errors-json, r=Centril

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).
Cargo.lock