about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-30 22:51:38 +0200
committerGitHub <noreply@github.com>2024-07-30 22:51:38 +0200
commit6f0b237c72851932748120549fe2feeb537124cf (patch)
tree211ae2827e910f511c4d74432cff58d441d27293 /compiler/rustc_pattern_analysis/src
parent894db1f22f9c028f73ddeb4e623e6750295345af (diff)
parent4776ac0f885044685c6f6127632f42522a88c05d (diff)
downloadrust-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