mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Minimize test
This commit is contained in:
parent
ab0a11b1de
commit
5398b9eeba
7 changed files with 50 additions and 128 deletions
|
@ -188,19 +188,9 @@ fn array_expr(p: &mut Parser) -> CompletedMarker {
|
|||
p.bump(T!['[']);
|
||||
while !p.at(EOF) && !p.at(T![']']) {
|
||||
n_exprs += 1;
|
||||
// test first_array_member_attributes
|
||||
// pub const A: &[i64] = &[
|
||||
// #[cfg(test)]
|
||||
// 1,
|
||||
// 2,
|
||||
// ];
|
||||
|
||||
// test subsequent_array_member_attributes
|
||||
// pub const A: &[i64] = &[
|
||||
// 1,
|
||||
// #[cfg(test)]
|
||||
// 2,
|
||||
// ];
|
||||
// test array_attrs
|
||||
// const A: &[i64] = &[1, #[cfg(test)] 2];
|
||||
let m = p.start();
|
||||
let has_attrs = p.at(T![#]);
|
||||
attributes::outer_attributes(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue