Recover unclosed char literal being parsed as lifetime
This commit is contained in:
parent
cde693cf96
commit
0270b50eb0
11 changed files with 209 additions and 23 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue