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/0006_unsafe_block_in_mod.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/0006_unsafe_block_in_mod.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt index a1871ec08..f3fbc4828 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt +++ b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt | |||
@@ -7,9 +7,10 @@ SOURCE_FILE@[0; 33) | |||
7 | PARAM_LIST@[6; 8) | 7 | PARAM_LIST@[6; 8) |
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@[6; 7) "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@[7; 8) ")" |
10 | BLOCK@[8; 10) | 10 | BLOCK_EXPR@[8; 10) |
11 | L_CURLY@[8; 9) "{" | 11 | BLOCK@[8; 10) |
12 | R_CURLY@[9; 10) "}" | 12 | L_CURLY@[8; 9) "{" |
13 | R_CURLY@[9; 10) "}" | ||
13 | WHITESPACE@[10; 11) " " | 14 | WHITESPACE@[10; 11) " " |
14 | ERROR@[11; 17) | 15 | ERROR@[11; 17) |
15 | UNSAFE_KW@[11; 17) "unsafe" | 16 | UNSAFE_KW@[11; 17) "unsafe" |
@@ -27,9 +28,10 @@ SOURCE_FILE@[0; 33) | |||
27 | PARAM_LIST@[28; 30) | 28 | PARAM_LIST@[28; 30) |
28 | L_PAREN@[28; 29) "(" | 29 | L_PAREN@[28; 29) "(" |
29 | R_PAREN@[29; 30) ")" | 30 | R_PAREN@[29; 30) ")" |
30 | BLOCK@[30; 32) | 31 | BLOCK_EXPR@[30; 32) |
31 | L_CURLY@[30; 31) "{" | 32 | BLOCK@[30; 32) |
32 | R_CURLY@[31; 32) "}" | 33 | L_CURLY@[30; 31) "{" |
34 | R_CURLY@[31; 32) "}" | ||
33 | WHITESPACE@[32; 33) "\n" | 35 | WHITESPACE@[32; 33) "\n" |
34 | error 11: expected an item | 36 | error 11: expected an item |
35 | error 18: expected an item | 37 | error 18: expected an item |