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/0010_wrong_order_fns.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/0010_wrong_order_fns.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt b/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt index b1ef210d3..2ea6a566d 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt +++ b/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt | |||
@@ -13,9 +13,10 @@ SOURCE_FILE@[0; 50) | |||
13 | L_PAREN@[19; 20) "(" | 13 | L_PAREN@[19; 20) "(" |
14 | R_PAREN@[20; 21) ")" | 14 | R_PAREN@[20; 21) ")" |
15 | WHITESPACE@[21; 22) " " | 15 | WHITESPACE@[21; 22) " " |
16 | BLOCK@[22; 24) | 16 | BLOCK_EXPR@[22; 24) |
17 | L_CURLY@[22; 23) "{" | 17 | BLOCK@[22; 24) |
18 | R_CURLY@[23; 24) "}" | 18 | L_CURLY@[22; 23) "{" |
19 | R_CURLY@[23; 24) "}" | ||
19 | WHITESPACE@[24; 25) "\n" | 20 | WHITESPACE@[24; 25) "\n" |
20 | ERROR@[25; 31) | 21 | ERROR@[25; 31) |
21 | UNSAFE_KW@[25; 31) "unsafe" | 22 | UNSAFE_KW@[25; 31) "unsafe" |
@@ -31,9 +32,10 @@ SOURCE_FILE@[0; 50) | |||
31 | L_PAREN@[44; 45) "(" | 32 | L_PAREN@[44; 45) "(" |
32 | R_PAREN@[45; 46) ")" | 33 | R_PAREN@[45; 46) ")" |
33 | WHITESPACE@[46; 47) " " | 34 | WHITESPACE@[46; 47) " " |
34 | BLOCK@[47; 49) | 35 | BLOCK_EXPR@[47; 49) |
35 | L_CURLY@[47; 48) "{" | 36 | BLOCK@[47; 49) |
36 | R_CURLY@[48; 49) "}" | 37 | L_CURLY@[47; 48) "{" |
38 | R_CURLY@[48; 49) "}" | ||
37 | WHITESPACE@[49; 50) "\n" | 39 | WHITESPACE@[49; 50) "\n" |
38 | error 5: expected existential, fn, trait or impl | 40 | error 5: expected existential, fn, trait or impl |
39 | error 31: expected existential, fn, trait or impl | 41 | error 31: expected existential, fn, trait or impl |