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/0032_match_arms_inner_attrs.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/0032_match_arms_inner_attrs.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt | 359 |
1 files changed, 180 insertions, 179 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt b/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt index 4e8c4143b..1344fcbc2 100644 --- a/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt +++ b/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt | |||
@@ -8,185 +8,186 @@ SOURCE_FILE@[0; 293) | |||
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; 292) | 11 | BLOCK_EXPR@[9; 292) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 292) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 101) | 14 | WHITESPACE@[10; 15) "\n " |
15 | MATCH_EXPR@[15; 101) | 15 | EXPR_STMT@[15; 101) |
16 | MATCH_KW@[15; 20) "match" | 16 | MATCH_EXPR@[15; 101) |
17 | WHITESPACE@[20; 21) " " | 17 | MATCH_KW@[15; 20) "match" |
18 | TUPLE_EXPR@[21; 23) | 18 | WHITESPACE@[20; 21) " " |
19 | L_PAREN@[21; 22) "(" | 19 | TUPLE_EXPR@[21; 23) |
20 | R_PAREN@[22; 23) ")" | 20 | L_PAREN@[21; 22) "(" |
21 | WHITESPACE@[23; 24) " " | 21 | R_PAREN@[22; 23) ")" |
22 | MATCH_ARM_LIST@[24; 101) | 22 | WHITESPACE@[23; 24) " " |
23 | L_CURLY@[24; 25) "{" | 23 | MATCH_ARM_LIST@[24; 101) |
24 | WHITESPACE@[25; 34) "\n " | 24 | L_CURLY@[24; 25) "{" |
25 | MATCH_ARM@[34; 41) | 25 | WHITESPACE@[25; 34) "\n " |
26 | PLACEHOLDER_PAT@[34; 35) | 26 | MATCH_ARM@[34; 41) |
27 | UNDERSCORE@[34; 35) "_" | 27 | PLACEHOLDER_PAT@[34; 35) |
28 | WHITESPACE@[35; 36) " " | 28 | UNDERSCORE@[34; 35) "_" |
29 | FAT_ARROW@[36; 38) "=>" | 29 | WHITESPACE@[35; 36) " " |
30 | WHITESPACE@[38; 39) " " | 30 | FAT_ARROW@[36; 38) "=>" |
31 | TUPLE_EXPR@[39; 41) | 31 | WHITESPACE@[38; 39) " " |
32 | L_PAREN@[39; 40) "(" | 32 | TUPLE_EXPR@[39; 41) |
33 | R_PAREN@[40; 41) ")" | 33 | L_PAREN@[39; 40) "(" |
34 | COMMA@[41; 42) "," | 34 | R_PAREN@[40; 41) ")" |
35 | WHITESPACE@[42; 51) "\n " | 35 | COMMA@[41; 42) "," |
36 | MATCH_ARM@[51; 78) | 36 | WHITESPACE@[42; 51) "\n " |
37 | ATTR@[51; 52) | 37 | MATCH_ARM@[51; 78) |
38 | POUND@[51; 52) "#" | 38 | ATTR@[51; 52) |
39 | ERROR@[52; 53) | 39 | POUND@[51; 52) "#" |
40 | EXCL@[52; 53) "!" | 40 | ERROR@[52; 53) |
41 | ARRAY_EXPR@[53; 78) | 41 | EXCL@[52; 53) "!" |
42 | L_BRACK@[53; 54) "[" | 42 | ARRAY_EXPR@[53; 78) |
43 | CALL_EXPR@[54; 77) | 43 | L_BRACK@[53; 54) "[" |
44 | PATH_EXPR@[54; 57) | 44 | CALL_EXPR@[54; 77) |
45 | PATH@[54; 57) | 45 | PATH_EXPR@[54; 57) |
46 | PATH_SEGMENT@[54; 57) | 46 | PATH@[54; 57) |
47 | NAME_REF@[54; 57) | 47 | PATH_SEGMENT@[54; 57) |
48 | IDENT@[54; 57) "doc" | 48 | NAME_REF@[54; 57) |
49 | ARG_LIST@[57; 77) | 49 | IDENT@[54; 57) "doc" |
50 | L_PAREN@[57; 58) "(" | 50 | ARG_LIST@[57; 77) |
51 | LITERAL@[58; 76) | 51 | L_PAREN@[57; 58) "(" |
52 | STRING@[58; 76) "\"Not allowed here\"" | 52 | LITERAL@[58; 76) |
53 | R_PAREN@[76; 77) ")" | 53 | STRING@[58; 76) "\"Not allowed here\"" |
54 | R_BRACK@[77; 78) "]" | 54 | R_PAREN@[76; 77) ")" |
55 | WHITESPACE@[78; 87) "\n " | 55 | R_BRACK@[77; 78) "]" |
56 | MATCH_ARM@[87; 94) | 56 | WHITESPACE@[78; 87) "\n " |
57 | PLACEHOLDER_PAT@[87; 88) | 57 | MATCH_ARM@[87; 94) |
58 | UNDERSCORE@[87; 88) "_" | 58 | PLACEHOLDER_PAT@[87; 88) |
59 | WHITESPACE@[88; 89) " " | 59 | UNDERSCORE@[87; 88) "_" |
60 | FAT_ARROW@[89; 91) "=>" | 60 | WHITESPACE@[88; 89) " " |
61 | WHITESPACE@[91; 92) " " | 61 | FAT_ARROW@[89; 91) "=>" |
62 | TUPLE_EXPR@[92; 94) | 62 | WHITESPACE@[91; 92) " " |
63 | L_PAREN@[92; 93) "(" | 63 | TUPLE_EXPR@[92; 94) |
64 | R_PAREN@[93; 94) ")" | 64 | L_PAREN@[92; 93) "(" |
65 | COMMA@[94; 95) "," | 65 | R_PAREN@[93; 94) ")" |
66 | WHITESPACE@[95; 100) "\n " | 66 | COMMA@[94; 95) "," |
67 | R_CURLY@[100; 101) "}" | 67 | WHITESPACE@[95; 100) "\n " |
68 | WHITESPACE@[101; 107) "\n\n " | 68 | R_CURLY@[100; 101) "}" |
69 | EXPR_STMT@[107; 185) | 69 | WHITESPACE@[101; 107) "\n\n " |
70 | MATCH_EXPR@[107; 185) | 70 | EXPR_STMT@[107; 185) |
71 | MATCH_KW@[107; 112) "match" | 71 | MATCH_EXPR@[107; 185) |
72 | WHITESPACE@[112; 113) " " | 72 | MATCH_KW@[107; 112) "match" |
73 | TUPLE_EXPR@[113; 115) | 73 | WHITESPACE@[112; 113) " " |
74 | L_PAREN@[113; 114) "(" | 74 | TUPLE_EXPR@[113; 115) |
75 | R_PAREN@[114; 115) ")" | 75 | L_PAREN@[113; 114) "(" |
76 | WHITESPACE@[115; 116) " " | 76 | R_PAREN@[114; 115) ")" |
77 | MATCH_ARM_LIST@[116; 185) | 77 | WHITESPACE@[115; 116) " " |
78 | L_CURLY@[116; 117) "{" | 78 | MATCH_ARM_LIST@[116; 185) |
79 | WHITESPACE@[117; 126) "\n " | 79 | L_CURLY@[116; 117) "{" |
80 | MATCH_ARM@[126; 133) | 80 | WHITESPACE@[117; 126) "\n " |
81 | PLACEHOLDER_PAT@[126; 127) | 81 | MATCH_ARM@[126; 133) |
82 | UNDERSCORE@[126; 127) "_" | 82 | PLACEHOLDER_PAT@[126; 127) |
83 | WHITESPACE@[127; 128) " " | 83 | UNDERSCORE@[126; 127) "_" |
84 | FAT_ARROW@[128; 130) "=>" | 84 | WHITESPACE@[127; 128) " " |
85 | WHITESPACE@[130; 131) " " | 85 | FAT_ARROW@[128; 130) "=>" |
86 | TUPLE_EXPR@[131; 133) | 86 | WHITESPACE@[130; 131) " " |
87 | L_PAREN@[131; 132) "(" | 87 | TUPLE_EXPR@[131; 133) |
88 | R_PAREN@[132; 133) ")" | 88 | L_PAREN@[131; 132) "(" |
89 | COMMA@[133; 134) "," | 89 | R_PAREN@[132; 133) ")" |
90 | WHITESPACE@[134; 143) "\n " | 90 | COMMA@[133; 134) "," |
91 | MATCH_ARM@[143; 150) | 91 | WHITESPACE@[134; 143) "\n " |
92 | PLACEHOLDER_PAT@[143; 144) | 92 | MATCH_ARM@[143; 150) |
93 | UNDERSCORE@[143; 144) "_" | 93 | PLACEHOLDER_PAT@[143; 144) |
94 | WHITESPACE@[144; 145) " " | 94 | UNDERSCORE@[143; 144) "_" |
95 | FAT_ARROW@[145; 147) "=>" | 95 | WHITESPACE@[144; 145) " " |
96 | WHITESPACE@[147; 148) " " | 96 | FAT_ARROW@[145; 147) "=>" |
97 | TUPLE_EXPR@[148; 150) | 97 | WHITESPACE@[147; 148) " " |
98 | L_PAREN@[148; 149) "(" | 98 | TUPLE_EXPR@[148; 150) |
99 | R_PAREN@[149; 150) ")" | 99 | L_PAREN@[148; 149) "(" |
100 | COMMA@[150; 151) "," | 100 | R_PAREN@[149; 150) ")" |
101 | WHITESPACE@[151; 160) "\n " | 101 | COMMA@[150; 151) "," |
102 | MATCH_ARM@[160; 179) | 102 | WHITESPACE@[151; 160) "\n " |
103 | ATTR@[160; 161) | 103 | MATCH_ARM@[160; 179) |
104 | POUND@[160; 161) "#" | 104 | ATTR@[160; 161) |
105 | ERROR@[161; 162) | 105 | POUND@[160; 161) "#" |
106 | EXCL@[161; 162) "!" | 106 | ERROR@[161; 162) |
107 | ARRAY_EXPR@[162; 179) | 107 | EXCL@[161; 162) "!" |
108 | L_BRACK@[162; 163) "[" | 108 | ARRAY_EXPR@[162; 179) |
109 | CALL_EXPR@[163; 178) | 109 | L_BRACK@[162; 163) "[" |
110 | PATH_EXPR@[163; 166) | 110 | CALL_EXPR@[163; 178) |
111 | PATH@[163; 166) | 111 | PATH_EXPR@[163; 166) |
112 | PATH_SEGMENT@[163; 166) | 112 | PATH@[163; 166) |
113 | NAME_REF@[163; 166) | 113 | PATH_SEGMENT@[163; 166) |
114 | IDENT@[163; 166) "doc" | 114 | NAME_REF@[163; 166) |
115 | ARG_LIST@[166; 178) | 115 | IDENT@[163; 166) "doc" |
116 | L_PAREN@[166; 167) "(" | 116 | ARG_LIST@[166; 178) |
117 | LITERAL@[167; 177) | 117 | L_PAREN@[166; 167) "(" |
118 | STRING@[167; 177) "\"Nor here\"" | 118 | LITERAL@[167; 177) |
119 | R_PAREN@[177; 178) ")" | 119 | STRING@[167; 177) "\"Nor here\"" |
120 | R_BRACK@[178; 179) "]" | 120 | R_PAREN@[177; 178) ")" |
121 | WHITESPACE@[179; 184) "\n " | 121 | R_BRACK@[178; 179) "]" |
122 | R_CURLY@[184; 185) "}" | 122 | WHITESPACE@[179; 184) "\n " |
123 | WHITESPACE@[185; 191) "\n\n " | 123 | R_CURLY@[184; 185) "}" |
124 | MATCH_EXPR@[191; 290) | 124 | WHITESPACE@[185; 191) "\n\n " |
125 | MATCH_KW@[191; 196) "match" | 125 | MATCH_EXPR@[191; 290) |
126 | WHITESPACE@[196; 197) " " | 126 | MATCH_KW@[191; 196) "match" |
127 | TUPLE_EXPR@[197; 199) | 127 | WHITESPACE@[196; 197) " " |
128 | L_PAREN@[197; 198) "(" | 128 | TUPLE_EXPR@[197; 199) |
129 | R_PAREN@[198; 199) ")" | 129 | L_PAREN@[197; 198) "(" |
130 | WHITESPACE@[199; 200) " " | 130 | R_PAREN@[198; 199) ")" |
131 | MATCH_ARM_LIST@[200; 290) | 131 | WHITESPACE@[199; 200) " " |
132 | L_CURLY@[200; 201) "{" | 132 | MATCH_ARM_LIST@[200; 290) |
133 | WHITESPACE@[201; 210) "\n " | 133 | L_CURLY@[200; 201) "{" |
134 | MATCH_ARM@[210; 250) | 134 | WHITESPACE@[201; 210) "\n " |
135 | ATTR@[210; 222) | 135 | MATCH_ARM@[210; 250) |
136 | POUND@[210; 211) "#" | 136 | ATTR@[210; 222) |
137 | TOKEN_TREE@[211; 222) | 137 | POUND@[210; 211) "#" |
138 | L_BRACK@[211; 212) "[" | 138 | TOKEN_TREE@[211; 222) |
139 | IDENT@[212; 215) "cfg" | 139 | L_BRACK@[211; 212) "[" |
140 | TOKEN_TREE@[215; 221) | 140 | IDENT@[212; 215) "cfg" |
141 | L_PAREN@[215; 216) "(" | 141 | TOKEN_TREE@[215; 221) |
142 | IDENT@[216; 220) "test" | 142 | L_PAREN@[215; 216) "(" |
143 | R_PAREN@[220; 221) ")" | 143 | IDENT@[216; 220) "test" |
144 | R_BRACK@[221; 222) "]" | 144 | R_PAREN@[220; 221) ")" |
145 | WHITESPACE@[222; 231) "\n " | 145 | R_BRACK@[221; 222) "]" |
146 | ATTR@[231; 232) | 146 | WHITESPACE@[222; 231) "\n " |
147 | POUND@[231; 232) "#" | 147 | ATTR@[231; 232) |
148 | ERROR@[232; 233) | 148 | POUND@[231; 232) "#" |
149 | EXCL@[232; 233) "!" | 149 | ERROR@[232; 233) |
150 | ARRAY_EXPR@[233; 250) | 150 | EXCL@[232; 233) "!" |
151 | L_BRACK@[233; 234) "[" | 151 | ARRAY_EXPR@[233; 250) |
152 | CALL_EXPR@[234; 249) | 152 | L_BRACK@[233; 234) "[" |
153 | PATH_EXPR@[234; 237) | 153 | CALL_EXPR@[234; 249) |
154 | PATH@[234; 237) | 154 | PATH_EXPR@[234; 237) |
155 | PATH_SEGMENT@[234; 237) | 155 | PATH@[234; 237) |
156 | NAME_REF@[234; 237) | 156 | PATH_SEGMENT@[234; 237) |
157 | IDENT@[234; 237) "doc" | 157 | NAME_REF@[234; 237) |
158 | ARG_LIST@[237; 249) | 158 | IDENT@[234; 237) "doc" |
159 | L_PAREN@[237; 238) "(" | 159 | ARG_LIST@[237; 249) |
160 | LITERAL@[238; 248) | 160 | L_PAREN@[237; 238) "(" |
161 | STRING@[238; 248) "\"Nor here\"" | 161 | LITERAL@[238; 248) |
162 | R_PAREN@[248; 249) ")" | 162 | STRING@[238; 248) "\"Nor here\"" |
163 | R_BRACK@[249; 250) "]" | 163 | R_PAREN@[248; 249) ")" |
164 | WHITESPACE@[250; 259) "\n " | 164 | R_BRACK@[249; 250) "]" |
165 | MATCH_ARM@[259; 266) | 165 | WHITESPACE@[250; 259) "\n " |
166 | PLACEHOLDER_PAT@[259; 260) | 166 | MATCH_ARM@[259; 266) |
167 | UNDERSCORE@[259; 260) "_" | 167 | PLACEHOLDER_PAT@[259; 260) |
168 | WHITESPACE@[260; 261) " " | 168 | UNDERSCORE@[259; 260) "_" |
169 | FAT_ARROW@[261; 263) "=>" | 169 | WHITESPACE@[260; 261) " " |
170 | WHITESPACE@[263; 264) " " | 170 | FAT_ARROW@[261; 263) "=>" |
171 | TUPLE_EXPR@[264; 266) | 171 | WHITESPACE@[263; 264) " " |
172 | L_PAREN@[264; 265) "(" | 172 | TUPLE_EXPR@[264; 266) |
173 | R_PAREN@[265; 266) ")" | 173 | L_PAREN@[264; 265) "(" |
174 | COMMA@[266; 267) "," | 174 | R_PAREN@[265; 266) ")" |
175 | WHITESPACE@[267; 276) "\n " | 175 | COMMA@[266; 267) "," |
176 | MATCH_ARM@[276; 283) | 176 | WHITESPACE@[267; 276) "\n " |
177 | PLACEHOLDER_PAT@[276; 277) | 177 | MATCH_ARM@[276; 283) |
178 | UNDERSCORE@[276; 277) "_" | 178 | PLACEHOLDER_PAT@[276; 277) |
179 | WHITESPACE@[277; 278) " " | 179 | UNDERSCORE@[276; 277) "_" |
180 | FAT_ARROW@[278; 280) "=>" | 180 | WHITESPACE@[277; 278) " " |
181 | WHITESPACE@[280; 281) " " | 181 | FAT_ARROW@[278; 280) "=>" |
182 | TUPLE_EXPR@[281; 283) | 182 | WHITESPACE@[280; 281) " " |
183 | L_PAREN@[281; 282) "(" | 183 | TUPLE_EXPR@[281; 283) |
184 | R_PAREN@[282; 283) ")" | 184 | L_PAREN@[281; 282) "(" |
185 | COMMA@[283; 284) "," | 185 | R_PAREN@[282; 283) ")" |
186 | WHITESPACE@[284; 289) "\n " | 186 | COMMA@[283; 284) "," |
187 | R_CURLY@[289; 290) "}" | 187 | WHITESPACE@[284; 289) "\n " |
188 | WHITESPACE@[290; 291) "\n" | 188 | R_CURLY@[289; 290) "}" |
189 | R_CURLY@[291; 292) "}" | 189 | WHITESPACE@[290; 291) "\n" |
190 | R_CURLY@[291; 292) "}" | ||
190 | WHITESPACE@[292; 293) "\n" | 191 | WHITESPACE@[292; 293) "\n" |
191 | error 52: expected `[` | 192 | error 52: expected `[` |
192 | error 52: expected pattern | 193 | error 52: expected pattern |