diff options
| author | Michael Goulet <michael@errs.io> | 2022-09-01 18:48:09 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-10-22 06:57:12 +0000 |
| commit | 0270b50eb093304c563e1def677ef38a72ac53c1 (patch) | |
| tree | 4e2f6741b23aa6d918584af80ccf20ce8300a13d /compiler/rustc_errors | |
| parent | cde693cf962f0f606e33eb21242f6bcd2d8d8b7a (diff) | |
| download | rust-0270b50eb093304c563e1def677ef38a72ac53c1.tar.gz rust-0270b50eb093304c563e1def677ef38a72ac53c1.zip | |
Recover unclosed char literal being parsed as lifetime
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 2f6686f8196..33b04ccaa23 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -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) {} |
