rust/src/libsyntax
bors 286dc37d1b Auto merge of #56369 - nnethercote:rm-Delimited, r=petrochenkov
Remove `tokenstream::Delimited`.

Because it's an extra type layer that doesn't really help; in a couple
of places it actively gets in the way, and overall removing it makes the
code nicer. It does, however, move `tokenstream::TokenTree` further away
from the `TokenTree` in `quote.rs`.

More importantly, this change reduces the size of `TokenStream` from 48
bytes to 40 bytes on x86-64, which is enough to slightly reduce
instruction counts on numerous benchmarks, the best by 1.5%.

Note that `open_tt` and `close_tt` have gone from being methods on
`Delimited` to associated methods of `TokenTree`.
2018-12-10 03:33:17 +00:00
..
2018-12-10 12:10:10 +11:00
2018-12-10 12:10:10 +11:00
2018-12-10 12:10:10 +11:00
2018-12-10 12:10:10 +11:00
2018-12-10 12:10:10 +11:00
2018-12-10 12:10:10 +11:00
2018-11-26 15:03:13 -06:00
2018-12-04 00:30:27 +03:00
2018-12-10 12:10:10 +11:00
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: