mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 15:17:31 +00:00
Fix panic in split and merge import assists
This commit is contained in:
parent
98c3e4e887
commit
76ddface08
7 changed files with 49 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
use crate::;
|
Loading…
Add table
Add a link
Reference in a new issue