about summary refs log tree commit diff
path: root/src/test/ui/parser/issue-81806.rs
AgeCommit message (Collapse)AuthorLines
2021-11-20Move parser tests to parser/issues subdirectoryBadel2-5/+0
Because the parser directory has already reached the 1000 file limit.
2021-02-08parser: Fix panic in 'const impl' recoveryÖmer Sinan Ağacan-0/+5
The panic happens when in recovery parsing a full `impl` (`parse_item_impl`) fails and we drop the `DiagnosticBuilder` for the recovery suggestion and return the `parse_item_impl` error. We now raise the original error "expected identifier found `impl`" when parsing the `impl` fails. Note that the regression test is slightly simplified version of the original repro in #81806, to make the error output smaller and more resilient to unrelated changes in parser error messages. Fixes #81806