1
Fork 0

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

@ -1227,7 +1227,7 @@ pub fn expr_to_spanned_string<'a>(
);
Some((err, true))
}
ast::LitKind::Err(_) => None,
ast::LitKind::Err => None,
_ => Some((cx.struct_span_err(l.span, err_msg), false)),
},
ast::ExprKind::Err => None,