Nadrieril
a2dcb3a6d9
Disallow an arm without a body (except for never patterns)
...
Parsing now accepts a match arm without a body, so we must make sure to
only accept that if the pattern is a never pattern.
2023-12-03 12:25:46 +01:00
Nadrieril
0bfebc6105
Detect attempts to expand a macro to a match arm again
...
Because a macro invocation can expand to a never pattern, we can't rule
out a `arm!(),` arm at parse time. Instead we detect that case at
expansion time, if the macro tries to output a pattern followed by `=>`.
2023-12-03 12:25:46 +01:00
Nadrieril
80bdcbf50a
Parse a pattern with no arm
2023-12-03 12:25:46 +01:00
Catherine Flores
bbd69e4a4c
Add test for enum with fields
2023-08-02 23:59:30 +00:00
Catherine Flores
dece622ee4
Recover from some macros
2023-07-24 17:05:10 +00:00
Catherine
287db04636
Specify macro is invalid in certain contexts
2023-07-24 00:25:17 -05:00