diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-22 13:27:52 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-23 16:56:24 +1000 |
| commit | 6087dc20542e9d88445604e3d8b1dd93c8fad04b (patch) | |
| tree | bf4b11c6f63b31181372d6e2f79129d7e94abf22 /compiler/rustc_parse/src/parser/mod.rs | |
| parent | fb5dc6b3e740e2030710b92a1bae8f8a81b35452 (diff) | |
| download | rust-6087dc20542e9d88445604e3d8b1dd93c8fad04b.tar.gz rust-6087dc20542e9d88445604e3d8b1dd93c8fad04b.zip | |
Remove the symbol from `ast::LitKind::Err`.
Because it's never used meaningfully.
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index d61da7b6cc0..f6516d3bd45 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1383,7 +1383,7 @@ impl<'a> Parser<'a> { match self.parse_str_lit() { Ok(str_lit) => Some(str_lit), Err(Some(lit)) => match lit.kind { - ast::LitKind::Err(_) => None, + ast::LitKind::Err => None, _ => { self.struct_span_err(lit.span, "non-string ABI literal") .span_suggestion( |
