mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Revert "Don't remap float tokens to INT_NUMBER
"
This reverts commit cb5e8da88a
.
This commit is contained in:
parent
da969635a4
commit
73e0e17b52
4 changed files with 4 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue