Fix panic in split and merge import assists

This commit is contained in:
Laurențiu Nicola 2020-06-23 09:41:43 +03:00
parent 98c3e4e887
commit 76ddface08
7 changed files with 49 additions and 4 deletions

View file

@ -9,8 +9,7 @@ SOURCE_FILE@0..12
NAME_REF@4..7
IDENT@4..7 "foo"
COLON2@7..9 "::"
PATH_SEGMENT@9..11
ERROR@9..11
INT_NUMBER@9..11 "92"
ERROR@9..11
INT_NUMBER@9..11 "92"
SEMICOLON@11..12 ";"
error 9..9: expected identifier

View file

@ -0,0 +1,15 @@
SOURCE_FILE@0..13
USE_ITEM@0..12
USE_KW@0..3 "use"
WHITESPACE@3..4 " "
USE_TREE@4..12
PATH@4..12
PATH@4..9
PATH_SEGMENT@4..9
CRATE_KW@4..9 "crate"
COLON2@9..11 "::"
ERROR@11..12
SEMICOLON@11..12 ";"
WHITESPACE@12..13 "\n"
error 11..11: expected identifier
error 12..12: expected SEMICOLON

View file

@ -0,0 +1 @@
use crate::;