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
|
@ -146,7 +146,7 @@ impl LitKind {
|
|||
|
||||
LitKind::ByteStr(bytes.into())
|
||||
}
|
||||
token::Err => LitKind::Err(symbol),
|
||||
token::Err => LitKind::Err,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ impl LitKind {
|
|||
let symbol = if value { kw::True } else { kw::False };
|
||||
(token::Bool, symbol, None)
|
||||
}
|
||||
LitKind::Err(symbol) => (token::Err, symbol, None),
|
||||
LitKind::Err => unreachable!(),
|
||||
};
|
||||
|
||||
token::Lit::new(kind, symbol, suffix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue