1
Fork 0
rust/compiler/rustc_parse/src
Dylan DPC 80045d65e1
Rollup merge of #96421 - nnethercote:less-NoDelim, r=petrochenkov
Less `NoDelim`

Currently there are several places where `NoDelim` (which really means "implicit delimiter" or "invisible delimiter") is used to mean "no delimiter". The name `NoDelim` is a bit misleading, and may be a cause.

This PR changes these places, e.g. by changing a `DelimToken` to `Option<DelimToken>` and then using `None` to mean "no delimiter". As a result, the *only* place where `NoDelim` values are now produced is within:
- `Delimiter::to_internal()`, when converting from `Delimiter::None`.
- `FlattenNonterminals::process_token()`, when converting `TokenKind::Interpolated`.

r? ````@petrochenkov````
2022-04-28 02:40:34 +02:00
..
lexer Rollup merge of #95859 - rainy-me:unterminated-nested-block-comment, r=petrochenkov 2022-04-16 07:12:44 +02:00
parser Rollup merge of #96421 - nnethercote:less-NoDelim, r=petrochenkov 2022-04-28 02:40:34 +02:00
lib.rs Rollup merge of #95301 - nnethercote:rm-NtTT, r=petrochenkov 2022-03-28 16:08:07 +02:00
validate_attr.rs rustc_feature: Convert BuiltinAttribute from tuple to a struct 2021-11-12 20:15:14 +08:00