Workaround for #4717: pad contents of ast. rs=breakage
This commit is contained in:
parent
0682ad0eb9
commit
71478f9ce3
14 changed files with 22 additions and 17 deletions
|
@ -1567,7 +1567,8 @@ pub impl Parser {
|
|||
let decl = self.parse_fn_decl(|p| p.parse_arg_or_capture_item());
|
||||
|
||||
let body = self.parse_block();
|
||||
return self.mk_expr(lo, body.span.hi,expr_fn(proto, decl, body));
|
||||
return self.mk_expr(lo, body.span.hi,
|
||||
expr_fn(proto, decl, body, @()));
|
||||
}
|
||||
|
||||
// `|args| { ... }` like in `do` expressions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue