aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r--crates/ra_parser/src/grammar/expressions/atom.rs16
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);