mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
6f0b237c72
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |