rust/src/libsyntax
Mazdak Farrokhzad 3fe8b4c043
Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavis
Pretty print `$crate` as `crate` or `crate_name` in more cases

So, people do parse output of `--pretty=expanded` (sigh), so covering only the legacy proc-macro case (like it was done in https://github.com/rust-lang/rust/pull/57155) is not enough.

This PRs resolves all `$crate`s produced by macros, so they are all printed in the parseable form `$crate::foo` -> `crate::foo` or `crate_name::foo`.

Fixes https://github.com/rust-lang/rust/issues/38016#issuecomment-455851334
Fixes https://github.com/rust-lang/rust/pull/57155#issuecomment-455807195
2019-01-28 22:25:48 +01:00
..
attr remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
diagnostics improve non_snake_case diagnostics 2019-01-08 13:24:38 -05:00
ext Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavis 2019-01-28 22:25:48 +01:00
parse remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
print Auto merge of #57651 - JohnTitor:give-char-type, r=estebank 2019-01-20 08:26:12 +00:00
util Remove quote_*! macros and associated APIs 2019-01-24 07:37:34 -07:00
ast.rs Rollup merge of #57817 - davidtwco:issue-54521, r=estebank 2019-01-24 00:19:57 +01:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Upgrade smallvec to 0.6.7 and use the new may_dangle feature. 2018-12-10 09:31:27 +11:00
config.rs remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
diagnostic_list.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
early_buffered_lints.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
entry.rs Remove licenses 2018-12-25 21:08:33 -07:00
feature_gate.rs Rollup merge of #57407 - mehcode:stabilize-extern-crate-self, r=Centril 2019-01-26 18:21:41 +01:00
fold.rs Corrected spelling inconsistency 2019-01-22 09:08:52 +01:00
json.rs Cosmetic improvements 2019-01-13 19:47:02 +00:00
lib.rs Remove quote_*! macros and associated APIs 2019-01-24 07:37:34 -07:00
ptr.rs Fix memory leak in P::filter_map 2019-01-16 23:08:30 +09:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Remove licenses 2018-12-25 21:08:33 -07:00
source_map.rs Remove licenses 2018-12-25 21:08:33 -07:00
std_inject.rs Remove licenses 2018-12-25 21:08:33 -07:00
test.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
test_snippet.rs Remove licenses 2018-12-25 21:08:33 -07:00
tokenstream.rs Make TokenStream use Option. 2019-01-14 11:05:56 +11:00
visit.rs Remove ThinTokenStream. 2019-01-14 09:10:26 +11: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: