Remove the symbol from ast::LitKind::Err.

Because it's never used meaningfully.
This commit is contained in:
Nicholas Nethercote 2022-08-22 13:27:52 +10:00
parent fb5dc6b3e7
commit 6087dc2054
13 changed files with 17 additions and 19 deletions

View file

@ -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(