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/err/0034_bad_box_pattern.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/err/0034_bad_box_pattern.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt | 157 |
1 files changed, 79 insertions, 78 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt index 0cdca4b55..21269fb02 100644 --- a/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt +++ b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt | |||
@@ -8,84 +8,85 @@ SOURCE_FILE@[0; 91) | |||
8 | L_PAREN@[7; 8) "(" | 8 | L_PAREN@[7; 8) "(" |
9 | R_PAREN@[8; 9) ")" | 9 | R_PAREN@[8; 9) ")" |
10 | WHITESPACE@[9; 10) " " | 10 | WHITESPACE@[9; 10) " " |
11 | BLOCK@[10; 89) | 11 | BLOCK_EXPR@[10; 89) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 89) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | LET_STMT@[16; 27) | 14 | WHITESPACE@[11; 16) "\n " |
15 | LET_KW@[16; 19) "let" | 15 | LET_STMT@[16; 27) |
16 | WHITESPACE@[19; 20) " " | 16 | LET_KW@[16; 19) "let" |
17 | BIND_PAT@[20; 27) | 17 | WHITESPACE@[19; 20) " " |
18 | REF_KW@[20; 23) "ref" | 18 | BIND_PAT@[20; 27) |
19 | WHITESPACE@[23; 24) " " | 19 | REF_KW@[20; 23) "ref" |
20 | ERROR@[24; 27) | 20 | WHITESPACE@[23; 24) " " |
21 | BOX_KW@[24; 27) "box" | 21 | ERROR@[24; 27) |
22 | WHITESPACE@[27; 28) " " | 22 | BOX_KW@[24; 27) "box" |
23 | EXPR_STMT@[28; 35) | 23 | WHITESPACE@[27; 28) " " |
24 | BIN_EXPR@[28; 34) | 24 | EXPR_STMT@[28; 35) |
25 | PATH_EXPR@[28; 29) | 25 | BIN_EXPR@[28; 34) |
26 | PATH@[28; 29) | 26 | PATH_EXPR@[28; 29) |
27 | PATH_SEGMENT@[28; 29) | 27 | PATH@[28; 29) |
28 | NAME_REF@[28; 29) | 28 | PATH_SEGMENT@[28; 29) |
29 | IDENT@[28; 29) "i" | 29 | NAME_REF@[28; 29) |
30 | WHITESPACE@[29; 30) " " | 30 | IDENT@[28; 29) "i" |
31 | EQ@[30; 31) "=" | 31 | WHITESPACE@[29; 30) " " |
32 | WHITESPACE@[31; 32) " " | 32 | EQ@[30; 31) "=" |
33 | TUPLE_EXPR@[32; 34) | 33 | WHITESPACE@[31; 32) " " |
34 | L_PAREN@[32; 33) "(" | 34 | TUPLE_EXPR@[32; 34) |
35 | R_PAREN@[33; 34) ")" | 35 | L_PAREN@[32; 33) "(" |
36 | SEMI@[34; 35) ";" | 36 | R_PAREN@[33; 34) ")" |
37 | WHITESPACE@[35; 40) "\n " | 37 | SEMI@[34; 35) ";" |
38 | LET_STMT@[40; 51) | 38 | WHITESPACE@[35; 40) "\n " |
39 | LET_KW@[40; 43) "let" | 39 | LET_STMT@[40; 51) |
40 | WHITESPACE@[43; 44) " " | 40 | LET_KW@[40; 43) "let" |
41 | BIND_PAT@[44; 51) | 41 | WHITESPACE@[43; 44) " " |
42 | MUT_KW@[44; 47) "mut" | 42 | BIND_PAT@[44; 51) |
43 | WHITESPACE@[47; 48) " " | 43 | MUT_KW@[44; 47) "mut" |
44 | ERROR@[48; 51) | 44 | WHITESPACE@[47; 48) " " |
45 | BOX_KW@[48; 51) "box" | 45 | ERROR@[48; 51) |
46 | WHITESPACE@[51; 52) " " | 46 | BOX_KW@[48; 51) "box" |
47 | EXPR_STMT@[52; 59) | 47 | WHITESPACE@[51; 52) " " |
48 | BIN_EXPR@[52; 58) | 48 | EXPR_STMT@[52; 59) |
49 | PATH_EXPR@[52; 53) | 49 | BIN_EXPR@[52; 58) |
50 | PATH@[52; 53) | 50 | PATH_EXPR@[52; 53) |
51 | PATH_SEGMENT@[52; 53) | 51 | PATH@[52; 53) |
52 | NAME_REF@[52; 53) | 52 | PATH_SEGMENT@[52; 53) |
53 | IDENT@[52; 53) "i" | 53 | NAME_REF@[52; 53) |
54 | WHITESPACE@[53; 54) " " | 54 | IDENT@[52; 53) "i" |
55 | EQ@[54; 55) "=" | 55 | WHITESPACE@[53; 54) " " |
56 | WHITESPACE@[55; 56) " " | 56 | EQ@[54; 55) "=" |
57 | TUPLE_EXPR@[56; 58) | 57 | WHITESPACE@[55; 56) " " |
58 | L_PAREN@[56; 57) "(" | 58 | TUPLE_EXPR@[56; 58) |
59 | R_PAREN@[57; 58) ")" | 59 | L_PAREN@[56; 57) "(" |
60 | SEMI@[58; 59) ";" | 60 | R_PAREN@[57; 58) ")" |
61 | WHITESPACE@[59; 64) "\n " | 61 | SEMI@[58; 59) ";" |
62 | LET_STMT@[64; 79) | 62 | WHITESPACE@[59; 64) "\n " |
63 | LET_KW@[64; 67) "let" | 63 | LET_STMT@[64; 79) |
64 | WHITESPACE@[67; 68) " " | 64 | LET_KW@[64; 67) "let" |
65 | BIND_PAT@[68; 79) | 65 | WHITESPACE@[67; 68) " " |
66 | REF_KW@[68; 71) "ref" | 66 | BIND_PAT@[68; 79) |
67 | WHITESPACE@[71; 72) " " | 67 | REF_KW@[68; 71) "ref" |
68 | MUT_KW@[72; 75) "mut" | 68 | WHITESPACE@[71; 72) " " |
69 | WHITESPACE@[75; 76) " " | 69 | MUT_KW@[72; 75) "mut" |
70 | ERROR@[76; 79) | 70 | WHITESPACE@[75; 76) " " |
71 | BOX_KW@[76; 79) "box" | 71 | ERROR@[76; 79) |
72 | WHITESPACE@[79; 80) " " | 72 | BOX_KW@[76; 79) "box" |
73 | EXPR_STMT@[80; 87) | 73 | WHITESPACE@[79; 80) " " |
74 | BIN_EXPR@[80; 86) | 74 | EXPR_STMT@[80; 87) |
75 | PATH_EXPR@[80; 81) | 75 | BIN_EXPR@[80; 86) |
76 | PATH@[80; 81) | 76 | PATH_EXPR@[80; 81) |
77 | PATH_SEGMENT@[80; 81) | 77 | PATH@[80; 81) |
78 | NAME_REF@[80; 81) | 78 | PATH_SEGMENT@[80; 81) |
79 | IDENT@[80; 81) "i" | 79 | NAME_REF@[80; 81) |
80 | WHITESPACE@[81; 82) " " | 80 | IDENT@[80; 81) "i" |
81 | EQ@[82; 83) "=" | 81 | WHITESPACE@[81; 82) " " |
82 | WHITESPACE@[83; 84) " " | 82 | EQ@[82; 83) "=" |
83 | TUPLE_EXPR@[84; 86) | 83 | WHITESPACE@[83; 84) " " |
84 | L_PAREN@[84; 85) "(" | 84 | TUPLE_EXPR@[84; 86) |
85 | R_PAREN@[85; 86) ")" | 85 | L_PAREN@[84; 85) "(" |
86 | SEMI@[86; 87) ";" | 86 | R_PAREN@[85; 86) ")" |
87 | WHITESPACE@[87; 88) "\n" | 87 | SEMI@[86; 87) ";" |
88 | R_CURLY@[88; 89) "}" | 88 | WHITESPACE@[87; 88) "\n" |
89 | R_CURLY@[88; 89) "}" | ||
89 | WHITESPACE@[89; 91) "\n\n" | 90 | WHITESPACE@[89; 91) "\n\n" |
90 | error 24: expected a name | 91 | error 24: expected a name |
91 | error 27: expected SEMI | 92 | error 27: expected SEMI |