Remove the symbol from ast::LitKind::Err.
Because it's never used meaningfully.
This commit is contained in:
parent
37eeed701a
commit
06d7119f40
3 changed files with 5 additions and 7 deletions
|
|
@ -290,7 +290,7 @@ impl<'a> NormalizedPat<'a> {
|
|||
LitKind::Char(val) => Self::LitInt(val.into()),
|
||||
LitKind::Int(val, _) => Self::LitInt(val),
|
||||
LitKind::Bool(val) => Self::LitBool(val),
|
||||
LitKind::Float(..) | LitKind::Err(_) => Self::Wild,
|
||||
LitKind::Float(..) | LitKind::Err => Self::Wild,
|
||||
},
|
||||
_ => Self::Wild,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ impl<'a, 'tcx> PrintVisitor<'a, 'tcx> {
|
|||
match lit.value.node {
|
||||
LitKind::Bool(val) => kind!("Bool({val:?})"),
|
||||
LitKind::Char(c) => kind!("Char({c:?})"),
|
||||
LitKind::Err(val) => kind!("Err({val})"),
|
||||
LitKind::Err => kind!("Err"),
|
||||
LitKind::Byte(b) => kind!("Byte({b})"),
|
||||
LitKind::Int(i, suffix) => {
|
||||
let int_ty = match suffix {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue