rust/compiler/rustc_parse/src
Matthias Krüger b2295375f8
Rollup merge of #117212 - clubby789:fix-ternary-recover, r=compiler-errors
Properly restore snapshot when failing to recover parsing ternary

If the recovery parsed an expression, then failed to eat a `:`, it would return `false` without restoring the snapshot. Fix this by always restoring the snapshot when returning `false`.

Draft for now because I'd like to try and improve this recovery further.

Fixes #117208
2023-10-27 19:46:07 +02:00
..
lexer Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
parser Rollup merge of #117212 - clubby789:fix-ternary-recover, r=compiler-errors 2023-10-27 19:46:07 +02:00
errors.rs Detect missing => after match guard during parsing 2023-10-03 21:21:02 +00:00
lib.rs Use relative positions inside a SourceFile. 2023-09-03 12:56:10 +00:00
validate_attr.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00