diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-02 20:20:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-02 20:20:24 +0100 |
commit | 7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch) | |
tree | 6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt | |
parent | a8397deab914240aca8f015fb3736689919c0a5b (diff) | |
parent | e94587e3153b52684fd3f6b82c8e7efc09ff5c8d (diff) |
Merge #1752
1752: Always wrap blocks into block expressions r=flodiebold a=matklad
This way, things like function bodies are expressions, and we don't have to single them out
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt b/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt index 1dbfca698..0594f148f 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt | |||
@@ -8,18 +8,19 @@ SOURCE_FILE@[0; 21) | |||
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@[6; 7) "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@[7; 8) ")" |
10 | WHITESPACE@[8; 9) " " | 10 | WHITESPACE@[8; 9) " " |
11 | BLOCK@[9; 20) | 11 | BLOCK_EXPR@[9; 20) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 20) |
13 | WHITESPACE@[10; 11) " " | 13 | L_CURLY@[9; 10) "{" |
14 | ERROR@[11; 14) | 14 | WHITESPACE@[10; 11) " " |
15 | VISIBILITY@[11; 14) | 15 | ERROR@[11; 14) |
16 | PUB_KW@[11; 14) "pub" | 16 | VISIBILITY@[11; 14) |
17 | WHITESPACE@[14; 15) " " | 17 | PUB_KW@[11; 14) "pub" |
18 | EXPR_STMT@[15; 18) | 18 | WHITESPACE@[14; 15) " " |
19 | LITERAL@[15; 17) | 19 | EXPR_STMT@[15; 18) |
20 | INT_NUMBER@[15; 17) "92" | 20 | LITERAL@[15; 17) |
21 | SEMI@[17; 18) ";" | 21 | INT_NUMBER@[15; 17) "92" |
22 | WHITESPACE@[18; 19) " " | 22 | SEMI@[17; 18) ";" |
23 | R_CURLY@[19; 20) "}" | 23 | WHITESPACE@[18; 19) " " |
24 | R_CURLY@[19; 20) "}" | ||
24 | WHITESPACE@[20; 21) "\n" | 25 | WHITESPACE@[20; 21) "\n" |
25 | error 14: expected an item | 26 | error 14: expected an item |