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
|
@ -1768,7 +1768,7 @@ pub enum LitKind {
|
|||
/// A boolean literal.
|
||||
Bool(bool),
|
||||
/// Placeholder for a literal that wasn't well-formed in some way.
|
||||
Err(Symbol),
|
||||
Err,
|
||||
}
|
||||
|
||||
impl LitKind {
|
||||
|
@ -1807,7 +1807,7 @@ impl LitKind {
|
|||
| LitKind::Int(_, LitIntType::Unsuffixed)
|
||||
| LitKind::Float(_, LitFloatType::Unsuffixed)
|
||||
| LitKind::Bool(..)
|
||||
| LitKind::Err(..) => false,
|
||||
| LitKind::Err => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue