rust/compiler/rustc_parse/src
Nicholas Nethercote b5ecbbb998 Remove TokenCursorFrame.
The motivation here is to eliminate the `Option<(Delimiter,
DelimSpan)>`, which is `None` for the outermost token stream and `Some`
for all other token streams.

We are already treating the innermost frame specially -- this is the
`frame` vs `stack` distinction in `TokenCursor`. We can push that
further so that `frame` only contains the cursor, and `stack` elements
contain the delimiters for their children. When we are in the outermost
token stream `stack` is empty, so there are no stored delimiters, which
is what we want because the outermost token stream *has* no delimiters.

This change also shrinks `TokenCursor`, which shrinks `Parser` and
`LazyAttrTokenStreamImpl`, which is nice.
2023-02-03 10:06:52 +11:00
..
lexer Rollup merge of #104012 - chenyukang:yukang/fix-103882-deli-indentation, r=petrochenkov 2023-01-28 11:11:05 +01:00
parser Remove TokenCursorFrame. 2023-02-03 10:06:52 +11:00
errors.rs Make "use latest edition" subdiagnostic translatable 2023-02-01 21:56:28 +01:00
lib.rs Split MacArgs in two. 2022-11-22 09:04:15 +11:00
validate_attr.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00