Matthias Krüger
6f0b237c72
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.
2024-07-30 22:51:38 +02:00
..
2024-07-15 13:01:20 -04:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-15 12:40:10 -04:00
2024-07-29 20:04:55 +03:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 17:46:44 +02:00
2024-06-12 15:49:10 +10:00
2024-07-29 11:59:47 -04:00
2024-07-30 22:51:38 +02:00
2024-07-29 07:41:33 +00:00
2024-07-29 07:41:33 +00:00
2024-07-30 05:50:05 +00:00
2024-07-29 08:26:52 +10:00
2024-07-30 17:49:08 +00:00
2024-07-30 17:49:08 +00:00
2024-06-12 15:49:10 +10:00
2024-07-30 14:08:02 +00:00
2024-07-29 17:50:12 +01:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 17:46:43 +02:00
2024-07-30 17:49:08 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 10:39:33 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 21:46:59 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-06-30 16:42:53 +00:00
2024-07-29 14:38:33 +03:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 17:49:08 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 10:39:33 +00:00
2024-07-29 11:42:34 +02:00
2024-07-29 11:59:47 -04:00
2024-07-29 11:59:47 -04:00
2024-07-29 08:26:52 +10:00
2024-07-30 04:31:54 +02:00
2024-07-30 22:51:38 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 21:26:12 +02:00
2024-07-29 11:42:34 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 14:26:21 -04:00
2024-07-29 17:46:42 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 03:22:27 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 07:41:33 +00:00
2024-07-30 17:49:08 +00:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-30 17:49:08 +00:00
2024-07-30 04:31:54 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00