Revert "Don't remap float tokens to INT_NUMBER"

This reverts commit cb5e8da88a.
This commit is contained in:
Jonas Schievink 2022-05-13 15:04:15 +02:00
parent da969635a4
commit 73e0e17b52
4 changed files with 4 additions and 10 deletions

View file

@ -243,8 +243,6 @@ fn convert_tokens<C: TokenConvertor>(conv: &mut C) -> tt::Subtree {
let char = match token.to_char(conv) {
Some(c) => c,
None => {
// FIXME: this isn't really correct, `to_char` yields the *first* char of the token,
// and this is relevant when eg. creating 2 `tt::Punct` from a single `::` token
panic!("Token from lexer must be single char: token = {:#?}", token);
}
};