diff options
author | Joshua Nelson <[email protected]> | 2020-01-17 03:20:17 +0000 |
---|---|---|
committer | Joshua Nelson <[email protected]> | 2020-01-17 03:20:17 +0000 |
commit | f077d5c303ecc4f38471b37be985bb0c5ab2f68c (patch) | |
tree | fd91936b72ea9334034f8b97f790b7fb419c2f32 /crates/ra_parser/src | |
parent | c78e34968ff24bf8b195ea02be54835a09f53abd (diff) |
move inline function closer to relevant code
also updates generated inline tests
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index d8105c382..95564b602 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs | |||
@@ -535,15 +535,15 @@ fn cast_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { | |||
535 | m.complete(p, CAST_EXPR) | 535 | m.complete(p, CAST_EXPR) |
536 | } | 536 | } |
537 | 537 | ||
538 | // test arg_with_attr | ||
539 | // fn main() { | ||
540 | // foo(#[attr] 92) | ||
541 | // } | ||
542 | fn arg_list(p: &mut Parser) { | 538 | fn arg_list(p: &mut Parser) { |
543 | assert!(p.at(T!['('])); | 539 | assert!(p.at(T!['('])); |
544 | let m = p.start(); | 540 | let m = p.start(); |
545 | p.bump(T!['(']); | 541 | p.bump(T!['(']); |
546 | while !p.at(T![')']) && !p.at(EOF) { | 542 | while !p.at(T![')']) && !p.at(EOF) { |
543 | // test arg_with_attr | ||
544 | // fn main() { | ||
545 | // foo(#[attr] 92) | ||
546 | // } | ||
547 | attributes::outer_attributes(p); | 547 | attributes::outer_attributes(p); |
548 | if !p.at_ts(EXPR_FIRST) { | 548 | if !p.at_ts(EXPR_FIRST) { |
549 | p.error("expected expression"); | 549 | p.error("expected expression"); |