Files
rust/tests/ui
Matthias Krüger a060ed2c06 Rollup merge of #119622 - Nadrieril:never_patterns_macros, r=compiler-errors
never patterns: Document behavior of never patterns with macros-by-example

`never_patterns` makes `!` parse as a pattern so I was worried about breaking macros-by-example matching. Turns out we're fine because the cases that now match `$p:pat` used to error in the past. The only tricky case is `!` by itself, which backwards-compatibly doesn't match `$p:pat`. I have no idea why tho, I didn't think of that when I was implementing parsing 😅.

This adds tests so we don't regress the current behavior.

r? `@compiler-errors`
2024-01-05 20:39:54 +01:00
..
2024-01-05 09:30:27 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-12-10 10:56:22 +08:00
2023-12-20 22:53:56 -05:00
2023-12-14 15:22:37 +01:00
2023-11-28 23:17:28 +00:00
2023-12-07 17:46:36 +01:00
2024-01-05 10:00:59 +00:00
2023-09-06 12:09:29 +03:00
2023-12-23 00:09:37 +08:00
2024-01-05 10:00:59 +00:00
2023-12-10 14:25:57 +01:00
2024-01-05 10:00:59 +00:00
2023-12-19 13:35:37 -05:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-12-15 16:12:27 +00:00
2024-01-05 10:00:59 +00:00
2023-11-24 21:04:51 +01:00
2024-01-05 09:30:27 +00:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-19 13:35:37 -05:00
2023-12-10 10:56:22 +08:00
2023-12-15 16:12:27 +00:00
2023-12-14 15:22:37 +01:00
2023-10-28 23:11:03 -07:00
2024-01-05 09:30:27 +00:00
2024-01-05 09:30:27 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:56:59 +00:00
2023-08-14 16:57:51 -07:00
2023-12-19 13:35:37 -05:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-12-19 13:35:37 -05:00
2023-12-10 10:56:22 +08:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-10-20 21:14:01 +00:00