about summary refs log tree commit diff
path: root/tests/ui/parser/macro
AgeCommit message (Collapse)AuthorLines
2023-12-03Disallow an arm without a body (except for never patterns)Nadrieril-1/+8
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-03Detect attempts to expand a macro to a match arm againNadrieril-0/+2
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-03Parse a pattern with no armNadrieril-7/+10
2023-11-24Show number in error message even for one errorNilstrieb-6/+6
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-05Add a note to duplicate diagnosticsAlex Macleod-0/+2
2023-08-21discard dummy field for macro invocation when parse structbohan-38/+44
2023-08-02Add test for enum with fieldsCatherine Flores-31/+53
2023-07-24Recover from some macrosCatherine Flores-86/+88
2023-07-24Specify macro is invalid in certain contextsCatherine-0/+148
2023-01-11Move /src/test to /testsAlbert Larsan-0/+393