rust/compiler/rustc_parse/src
Ömer Sinan Ağacan 6eb1bd4c3e parser: Fix panic in 'const impl' recovery
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
2021-02-08 10:46:19 +03:00
..
lexer Handle Spans for byte and raw strings and add more detail 2021-02-03 13:34:28 -08:00
parser parser: Fix panic in 'const impl' recovery 2021-02-08 10:46:19 +03:00
lib.rs Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
validate_attr.rs ast: Remove some indirection layers from values in key-value attributes 2021-01-09 21:50:39 +03:00