diff options
author | Aleksey Kladov <[email protected]> | 2020-01-16 17:39:29 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-01-16 17:39:29 +0000 |
commit | 5398b9eeba14a3e73eb9a8b7e0d2e703e052585d (patch) | |
tree | dc1c18aa49beaef7e8cf305e7b020d25cb10a58c /crates/ra_parser | |
parent | ab0a11b1de3237a476639fee39fcf6ef506bdf34 (diff) |
Minimize test
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions/atom.rs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs index 5c413317e..a98a2a3ef 100644 --- a/crates/ra_parser/src/grammar/expressions/atom.rs +++ b/crates/ra_parser/src/grammar/expressions/atom.rs | |||
@@ -188,19 +188,9 @@ fn array_expr(p: &mut Parser) -> CompletedMarker { | |||
188 | p.bump(T!['[']); | 188 | p.bump(T!['[']); |
189 | while !p.at(EOF) && !p.at(T![']']) { | 189 | while !p.at(EOF) && !p.at(T![']']) { |
190 | n_exprs += 1; | 190 | n_exprs += 1; |
191 | // test first_array_member_attributes | 191 | |
192 | // pub const A: &[i64] = &[ | 192 | // test array_attrs |
193 | // #[cfg(test)] | 193 | // const A: &[i64] = &[1, #[cfg(test)] 2]; |
194 | // 1, | ||
195 | // 2, | ||
196 | // ]; | ||
197 | |||
198 | // test subsequent_array_member_attributes | ||
199 | // pub const A: &[i64] = &[ | ||
200 | // 1, | ||
201 | // #[cfg(test)] | ||
202 | // 2, | ||
203 | // ]; | ||
204 | let m = p.start(); | 194 | let m = p.start(); |
205 | let has_attrs = p.at(T![#]); | 195 | let has_attrs = p.at(T![#]); |
206 | attributes::outer_attributes(p); | 196 | attributes::outer_attributes(p); |