Rollup merge of #101293 - compiler-errors:lt-is-actually-char, r=estebank
Recover when unclosed char literal is parsed as a lifetime in some positions Fixes #101278
This commit is contained in:
commit
e029c1fd43
11 changed files with 209 additions and 23 deletions
|
@ -463,6 +463,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