rust/src/libsyntax
Mazdak Farrokhzad ae0c8b5f09
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).
2019-11-15 18:02:02 +01:00
..
ast libsyntax: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
attr Update to use new librustc_error_codes library 2019-11-14 13:05:42 +01:00
diagnostics Update to use new librustc_error_codes library 2019-11-14 13:05:42 +01:00
expand Review feedback: Remove more stuff! Simplify simplify simplify! 2019-11-05 14:59:29 +01:00
feature_gate Rollup merge of #66197 - Centril:transparent-ast, r=varkor 2019-11-15 14:44:47 +01:00
print TAIT: remove OpaqueTy in AST. 2019-11-14 13:40:42 +01:00
util move syntax::parse -> librustc_parse 2019-11-10 03:57:18 +01:00
ast.rs TAIT: use hack in ->HIR to avoid more changes 2019-11-14 13:40:42 +01:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Update to use new librustc_error_codes library 2019-11-14 13:05:42 +01:00
early_buffered_lints.rs Warn if include macro fails to include entire file 2019-10-07 19:47:53 -04:00
entry.rs Rename Item.node to Item.kind 2019-09-26 18:21:48 +01:00
lib.rs Move JSON emitter to rustc_errors 2019-11-15 08:45:49 -05:00
mut_visit.rs TAIT: remove OpaqueTy in AST. 2019-11-14 13:40:42 +01:00
ptr.rs Remove many unnecessary trait derivations. 2019-10-21 20:59:18 +11:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
sess.rs move syntax::parse -> librustc_parse 2019-11-10 03:57:18 +01:00
show_span.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
token.rs Tiny cleanup to size assertions 2019-11-11 22:23:25 +03:00
tokenstream.rs Tiny cleanup to size assertions 2019-11-11 22:23:25 +03:00
visit.rs TAIT: remove OpaqueTy in AST. 2019-11-14 13:40:42 +01:00

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: