rust/src/libsyntax
kennytm dadf7fcc2d
Rollup merge of #56699 - nnethercote:SymbolIndex, r=oli-obk
Use a `newtype_index!` within `Symbol`.

This shrinks `Option<Symbol>` from 8 bytes to 4 bytes, which shrinks
`Token` from 24 bytes to 16 bytes. This reduces instruction counts by up
to 1% across a range of benchmarks.

r? @oli-obk
2018-12-14 22:10:09 +08:00
..
attr Remove tokenstream::Delimited. 2018-12-10 12:10:10 +11:00
diagnostics Bump to 1.33.0 2018-12-12 08:09:26 -08:00
ext Remove tokenstream::Delimited. 2018-12-10 12:10:10 +11:00
parse Rollup merge of #56699 - nnethercote:SymbolIndex, r=oli-obk 2018-12-14 22:10:09 +08:00
print Remove tokenstream::Delimited. 2018-12-10 12:10:10 +11:00
util Various minor/cosmetic improvements to code 2018-12-07 23:53:34 +00:00
ast.rs Remove tokenstream::Delimited. 2018-12-10 12:10:10 +11:00
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -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 Various minor/cosmetic improvements to code 2018-12-07 23:53:34 +00:00
diagnostic_list.rs Add a stub feature so we can still test E0705 2018-10-19 22:26:02 -07:00
early_buffered_lints.rs make it a migration lint 2018-07-23 21:55:51 -05:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs Fixed incorrect reference to issue #23121. 2018-12-07 23:53:34 +00:00
fold.rs Remove tokenstream::Delimited. 2018-12-10 12:10:10 +11:00
json.rs Rename other occs of (Code/File)Map to Source(Map/File) #51574 2018-10-29 21:26:13 +01:00
lib.rs Various minor/cosmetic improvements to code 2018-12-07 23:53:34 +00:00
ptr.rs Various minor/cosmetic improvements to code 2018-12-07 23:53:34 +00:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
source_map.rs Bump to 1.33.0 2018-12-12 08:09:26 -08:00
std_inject.rs syntax: Rename some keywords 2018-12-04 00:30:27 +03:00
test.rs Various minor/cosmetic improvements to code 2018-12-07 23:53:34 +00:00
test_snippet.rs Rename other occs of (Code/File)Map to Source(Map/File) #51574 2018-10-29 21:26:13 +01:00
tokenstream.rs Remove tokenstream::Delimited. 2018-12-10 12:10:10 +11:00
visit.rs Remove tokenstream::Delimited. 2018-12-10 12:10:10 +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: