diff options
Diffstat (limited to 'crates/ra_mbe/src/subtree_source.rs')
-rw-r--r-- | crates/ra_mbe/src/subtree_source.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crates/ra_mbe/src/subtree_source.rs b/crates/ra_mbe/src/subtree_source.rs index 6255ea304..278d046fb 100644 --- a/crates/ra_mbe/src/subtree_source.rs +++ b/crates/ra_mbe/src/subtree_source.rs | |||
@@ -388,6 +388,7 @@ where | |||
388 | } | 388 | } |
389 | } | 389 | } |
390 | 390 | ||
391 | // FIXME: Remove this function | ||
391 | fn convert_multi_char_punct<'b, I>( | 392 | fn convert_multi_char_punct<'b, I>( |
392 | p: &tt::Punct, | 393 | p: &tt::Punct, |
393 | iter: &mut TokenPeek<'b, I>, | 394 | iter: &mut TokenPeek<'b, I>, |
@@ -397,8 +398,6 @@ where | |||
397 | { | 398 | { |
398 | if let Some((m, is_joint_to_next)) = iter.current_punct3(p) { | 399 | if let Some((m, is_joint_to_next)) = iter.current_punct3(p) { |
399 | if let Some((kind, text)) = match m { | 400 | if let Some((kind, text)) = match m { |
400 | ('.', '.', '.') => Some((DOTDOTDOT, "...")), | ||
401 | ('.', '.', '=') => Some((DOTDOTEQ, "..=")), | ||
402 | _ => None, | 401 | _ => None, |
403 | } { | 402 | } { |
404 | return Some((kind, is_joint_to_next, text, 3)); | 403 | return Some((kind, is_joint_to_next, text, 3)); |
@@ -407,13 +406,6 @@ where | |||
407 | 406 | ||
408 | if let Some((m, is_joint_to_next)) = iter.current_punct2(p) { | 407 | if let Some((m, is_joint_to_next)) = iter.current_punct2(p) { |
409 | if let Some((kind, text)) = match m { | 408 | if let Some((kind, text)) = match m { |
410 | ('-', '>') => Some((THIN_ARROW, "->")), | ||
411 | ('!', '=') => Some((NEQ, "!=")), | ||
412 | ('=', '>') => Some((FAT_ARROW, "=>")), | ||
413 | ('=', '=') => Some((EQEQ, "==")), | ||
414 | ('.', '.') => Some((DOTDOT, "..")), | ||
415 | (':', ':') => Some((COLONCOLON, "::")), | ||
416 | |||
417 | _ => None, | 409 | _ => None, |
418 | } { | 410 | } { |
419 | return Some((kind, is_joint_to_next, text, 2)); | 411 | return Some((kind, is_joint_to_next, text, 2)); |