rust/src/libsyntax
bors 55cee44671 Auto merge of #61612 - nnethercote:improve-parse_bottom_expr, r=petrochenkov
Special-case literals in `parse_bottom_expr`.

This makes parsing faster, particularly for code with large constants,
for two reasons:
- it skips all the keyword comparisons for literals;
- it skips the allocation done by the `mk_expr` call in
  `parse_literal_maybe_minus`.

r? @petrochenkov
2019-06-12 16:30:05 +00:00
..
attr Auto merge of #60669 - c410-f3r:attrs-fn, r=petrochenkov 2019-06-12 07:38:01 +00:00
diagnostics use default binding mode in match clauses 2019-06-08 13:29:43 +02:00
ext Auto merge of #60669 - c410-f3r:attrs-fn, r=petrochenkov 2019-06-12 07:38:01 +00:00
parse Auto merge of #61612 - nnethercote:improve-parse_bottom_expr, r=petrochenkov 2019-06-12 16:30:05 +00:00
print syntax: Remove Deref impl from Token 2019-06-08 22:38:23 +03:00
util syntax: Move most of the TokenKind methods to Token 2019-06-08 22:38:12 +03:00
ast.rs Allow attributes in formal function parameters 2019-06-09 07:58:40 -03:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of looping 2019-04-15 15:20:05 +02:00
config.rs Allow attributes in formal function parameters 2019-06-09 07:58:40 -03:00
early_buffered_lints.rs Some code cleanup and tidy/test fixes 2019-06-06 14:04:02 +03:00
entry.rs Remove the equality operation between Symbol and strings. 2019-05-13 09:31:30 +10:00
error_codes.rs Added the E0704 error with a link to the Rust reference. 2019-05-01 12:01:52 +02:00
feature_gate.rs Auto merge of #60669 - c410-f3r:attrs-fn, r=petrochenkov 2019-06-12 07:38:01 +00:00
json.rs Make -Zemit-artifact-notifications also emit the artifact type 2019-05-21 13:51:36 -07:00
lib.rs Add deny(unused_lifetimes) to all the crates that have deny(internal). 2019-06-11 14:11:59 +03:00
mut_visit.rs Allow attributes in formal function parameters 2019-06-09 07:58:40 -03:00
ptr.rs Aggregation of drive-by cosmetic changes. 2019-06-05 21:09:26 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
source_map.rs syntax/rustc: move mark_span_with_reason back. 2019-06-03 10:20:35 +01:00
std_inject.rs Avoid unnecessary internings. 2019-05-27 13:58:38 +10:00
test.rs Avoid unnecessary internings. 2019-05-27 13:58:38 +10:00
test_snippet.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
tokenstream.rs syntax: Remove Deref impl from Token 2019-06-08 22:38:23 +03:00
visit.rs Allow attributes in formal function parameters 2019-06-09 07:58:40 -03: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: