Remove the symbol from ast::LitKind::Err
.
Because it's never used meaningfully.
This commit is contained in:
parent
fb5dc6b3e7
commit
6087dc2054
13 changed files with 17 additions and 19 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue