diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-30 22:51:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 22:51:38 +0200 |
| commit | 6f0b237c72851932748120549fe2feeb537124cf (patch) | |
| tree | 211ae2827e910f511c4d74432cff58d441d27293 /compiler/rustc_pattern_analysis/src | |
| parent | 894db1f22f9c028f73ddeb4e623e6750295345af (diff) | |
| parent | 4776ac0f885044685c6f6127632f42522a88c05d (diff) | |
| download | rust-6f0b237c72851932748120549fe2feeb537124cf.tar.gz rust-6f0b237c72851932748120549fe2feeb537124cf.zip | |
Rollup merge of #128376 - compiler-errors:finish-ur-vegetables, r=jieyouxu
Mark `Parser::eat`/`check` methods as `#[must_use]` These methods return a `bool`, but we probably should either use these values or explicitly throw them away (e.g. when we just want to unconditionally eat a token if it exists). I changed a few places from `eat` to `expect`, but otherwise I tried to leave a comment explaining why the `eat` was okay. This also adds a test for the `pattern_type!` macro, which used to silently accept a missing `is` token.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
