mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Cleanup inline tests
This commit is contained in:
parent
642a3392d9
commit
623faefcda
9 changed files with 63 additions and 32 deletions
|
@ -1,5 +1,5 @@
|
|||
SOURCE_FILE@0..52
|
||||
FN_DEF@0..51
|
||||
SOURCE_FILE@0..21
|
||||
FN_DEF@0..20
|
||||
FN_KW@0..2 "fn"
|
||||
WHITESPACE@2..3 " "
|
||||
NAME@3..6
|
||||
|
@ -8,7 +8,7 @@ SOURCE_FILE@0..52
|
|||
L_PAREN@6..7 "("
|
||||
R_PAREN@7..8 ")"
|
||||
WHITESPACE@8..9 " "
|
||||
BLOCK_EXPR@9..51
|
||||
BLOCK_EXPR@9..20
|
||||
L_CURLY@9..10 "{"
|
||||
WHITESPACE@10..15 "\n "
|
||||
EXPR_STMT@15..18
|
||||
|
@ -16,26 +16,6 @@ SOURCE_FILE@0..52
|
|||
L_CURLY@15..16 "{"
|
||||
R_CURLY@16..17 "}"
|
||||
SEMICOLON@17..18 ";"
|
||||
WHITESPACE@18..23 "\n "
|
||||
EXPR_STMT@23..33
|
||||
EFFECT_EXPR@23..32
|
||||
UNSAFE_KW@23..29 "unsafe"
|
||||
WHITESPACE@29..30 " "
|
||||
BLOCK_EXPR@30..32
|
||||
L_CURLY@30..31 "{"
|
||||
R_CURLY@31..32 "}"
|
||||
SEMICOLON@32..33 ";"
|
||||
WHITESPACE@33..38 "\n "
|
||||
EXPR_STMT@38..49
|
||||
EFFECT_EXPR@38..48
|
||||
LABEL@38..45
|
||||
LIFETIME@38..44 "\'label"
|
||||
COLON@44..45 ":"
|
||||
WHITESPACE@45..46 " "
|
||||
BLOCK_EXPR@46..48
|
||||
L_CURLY@46..47 "{"
|
||||
R_CURLY@47..48 "}"
|
||||
SEMICOLON@48..49 ";"
|
||||
WHITESPACE@49..50 "\n"
|
||||
R_CURLY@50..51 "}"
|
||||
WHITESPACE@51..52 "\n"
|
||||
WHITESPACE@18..19 "\n"
|
||||
R_CURLY@19..20 "}"
|
||||
WHITESPACE@20..21 "\n"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
fn foo() {
|
||||
{};
|
||||
unsafe {};
|
||||
'label: {};
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ SOURCE_FILE@0..47
|
|||
BLOCK_EXPR@15..31
|
||||
L_CURLY@15..16 "{"
|
||||
WHITESPACE@16..17 " "
|
||||
EFFECT_EXPR@17..29
|
||||
TRY_EXPR@17..29
|
||||
ATTR@17..21
|
||||
POUND@17..18 "#"
|
||||
L_BRACK@18..19 "["
|
||||
|
|
|
@ -39,7 +39,7 @@ SOURCE_FILE@0..67
|
|||
WHITESPACE@38..43 "\n "
|
||||
EXPR_STMT@43..64
|
||||
METHOD_CALL_EXPR@43..63
|
||||
EFFECT_EXPR@43..55
|
||||
TRY_EXPR@43..55
|
||||
AWAIT_EXPR@43..54
|
||||
CALL_EXPR@43..48
|
||||
FIELD_EXPR@43..46
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
SOURCE_FILE@0..23
|
||||
FN_DEF@0..22
|
||||
FN_KW@0..2 "fn"
|
||||
WHITESPACE@2..3 " "
|
||||
NAME@3..4
|
||||
IDENT@3..4 "f"
|
||||
PARAM_LIST@4..6
|
||||
L_PAREN@4..5 "("
|
||||
R_PAREN@5..6 ")"
|
||||
WHITESPACE@6..7 " "
|
||||
BLOCK_EXPR@7..22
|
||||
L_CURLY@7..8 "{"
|
||||
WHITESPACE@8..9 " "
|
||||
EXPR_STMT@9..20
|
||||
EFFECT_EXPR@9..19
|
||||
LABEL@9..16
|
||||
LIFETIME@9..15 "\'label"
|
||||
COLON@15..16 ":"
|
||||
WHITESPACE@16..17 " "
|
||||
BLOCK_EXPR@17..19
|
||||
L_CURLY@17..18 "{"
|
||||
R_CURLY@18..19 "}"
|
||||
SEMICOLON@19..20 ";"
|
||||
WHITESPACE@20..21 " "
|
||||
R_CURLY@21..22 "}"
|
||||
WHITESPACE@22..23 "\n"
|
|
@ -0,0 +1 @@
|
|||
fn f() { 'label: {}; }
|
|
@ -0,0 +1,23 @@
|
|||
SOURCE_FILE@0..22
|
||||
FN_DEF@0..21
|
||||
FN_KW@0..2 "fn"
|
||||
WHITESPACE@2..3 " "
|
||||
NAME@3..4
|
||||
IDENT@3..4 "f"
|
||||
PARAM_LIST@4..6
|
||||
L_PAREN@4..5 "("
|
||||
R_PAREN@5..6 ")"
|
||||
WHITESPACE@6..7 " "
|
||||
BLOCK_EXPR@7..21
|
||||
L_CURLY@7..8 "{"
|
||||
WHITESPACE@8..9 " "
|
||||
EFFECT_EXPR@9..19
|
||||
UNSAFE_KW@9..15 "unsafe"
|
||||
WHITESPACE@15..16 " "
|
||||
BLOCK_EXPR@16..19
|
||||
L_CURLY@16..17 "{"
|
||||
WHITESPACE@17..18 " "
|
||||
R_CURLY@18..19 "}"
|
||||
WHITESPACE@19..20 " "
|
||||
R_CURLY@20..21 "}"
|
||||
WHITESPACE@21..22 "\n"
|
|
@ -0,0 +1 @@
|
|||
fn f() { unsafe { } }
|
Loading…
Add table
Add a link
Reference in a new issue