Recover unclosed char literal being parsed as lifetime

This commit is contained in:
Michael Goulet 2022-09-01 18:48:09 +00:00
parent cde693cf96
commit 0270b50eb0
11 changed files with 209 additions and 23 deletions

View file

@ -461,6 +461,9 @@ pub enum StashKey {
UnderscoreForArrayLengths,
EarlySyntaxWarning,
CallIntoMethod,
/// When an invalid lifetime e.g. `'2` should be reinterpreted
/// as a char literal in the parser
LifetimeIsChar,
}
fn default_track_diagnostic(_: &Diagnostic) {}