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

@ -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)