bors 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`.
Latest commit 286dc37 Dec 9, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
attr Remove `tokenstream::Delimited`. Dec 10, 2018
diagnostics Remove OneVector Sep 26, 2018
ext Remove `tokenstream::Delimited`. Dec 10, 2018
parse Remove `tokenstream::Delimited`. Dec 10, 2018
print Remove `tokenstream::Delimited`. Dec 10, 2018
util Various minor/cosmetic improvements to code Dec 7, 2018
Cargo.toml Upgrade `smallvec` to 0.6.7 and use the new `may_dangle` feature. Dec 9, 2018
README.md rustc-guide has moved Nov 26, 2018
ast.rs Remove `tokenstream::Delimited`. Dec 10, 2018
build.rs rustc: Add some build scripts for librustc crates Jul 23, 2017
config.rs Various minor/cosmetic improvements to code Dec 7, 2018
diagnostic_list.rs Add a stub feature so we can still test E0705 Oct 20, 2018
early_buffered_lints.rs make it a migration lint Jul 24, 2018
entry.rs Cleanup `InternedString`. Nov 21, 2016
feature_gate.rs Fixed incorrect reference to issue #23121. Dec 7, 2018
fold.rs Remove `tokenstream::Delimited`. Dec 10, 2018
json.rs Rename other occs of (Code/File)Map to Source(Map/File) #51574 Oct 29, 2018
lib.rs Various minor/cosmetic improvements to code Dec 7, 2018
ptr.rs Various minor/cosmetic improvements to code Dec 7, 2018
show_span.rs use field init shorthand EVERYWHERE Aug 15, 2017
source_map.rs use top level `fs` functions where appropriate Dec 7, 2018
std_inject.rs syntax: Rename some keywords Dec 3, 2018
test.rs Various minor/cosmetic improvements to code Dec 7, 2018
test_snippet.rs Rename other occs of (Code/File)Map to Source(Map/File) #51574 Oct 29, 2018
tokenstream.rs Remove `tokenstream::Delimited`. Dec 10, 2018
visit.rs Remove `tokenstream::Delimited`. Dec 10, 2018

README.md

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: