about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-28 02:40:34 +0200
committerGitHub <noreply@github.com>2022-04-28 02:40:34 +0200
commit80045d65e111568f0fe2f5371a6d0f7d8c81b496 (patch)
treee84585b4e5f58e77dd8ad0239e12d10897dabb0f /src/test/codegen/src-hash-algorithm
parentc4dd0d3bb70367273db9eee9e5fa6cb323a69547 (diff)
parent86f011704c31f4eb1e7993e1951826bca46fe8f1 (diff)
downloadrust-80045d65e111568f0fe2f5371a6d0f7d8c81b496.tar.gz
rust-80045d65e111568f0fe2f5371a6d0f7d8c81b496.zip
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````
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions