move inline function closer to relevant code

also updates generated inline tests
This commit is contained in:
Joshua Nelson 2020-01-16 22:20:17 -05:00
parent c78e34968f
commit f077d5c303
No known key found for this signature in database
GPG key ID: E655823D8D8B1088
5 changed files with 44 additions and 119 deletions

View file

@ -535,15 +535,15 @@ fn cast_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
m.complete(p, CAST_EXPR)
}
// test arg_with_attr
// fn main() {
// foo(#[attr] 92)
// }
fn arg_list(p: &mut Parser) {
assert!(p.at(T!['(']));
let m = p.start();
p.bump(T!['(']);
while !p.at(T![')']) && !p.at(EOF) {
// test arg_with_attr
// fn main() {
// foo(#[attr] 92)
// }
attributes::outer_attributes(p);
if !p.at_ts(EXPR_FIRST) {
p.error("expected expression");