From 4fd7ad908b6e7cee0ee7853fcf29fb5a38a19aa2 Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 28 Jul 2019 20:47:44 +0100 Subject: Add special case for f32 and f43 suffices on Literal.kind --- crates/ra_syntax/src/parsing/lexer.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'crates/ra_syntax/src/parsing/lexer.rs') diff --git a/crates/ra_syntax/src/parsing/lexer.rs b/crates/ra_syntax/src/parsing/lexer.rs index 45ef88ac0..2a4343b0a 100644 --- a/crates/ra_syntax/src/parsing/lexer.rs +++ b/crates/ra_syntax/src/parsing/lexer.rs @@ -145,17 +145,3 @@ pub fn classify_literal(text: &str) -> Option { }; Some(Token { kind, len: TextUnit::from_usize(t.len) }) } - -#[cfg(test)] -mod tests { - use super::*; - - // https://github.com/rust-analyzer/rust-analyzer/issues/1592 - #[test] - fn lex_float_literal() { - assert_eq!( - tokenize("42f64")[0], - Token { kind: FLOAT_NUMBER, len: TextUnit::from_usize(5)} - ); - } -} -- cgit v1.2.3