Workaround for #4717: pad contents of ast. rs=breakage

This commit is contained in:
Niko Matsakis 2013-01-31 16:47:19 -08:00
parent 0682ad0eb9
commit 71478f9ce3
14 changed files with 22 additions and 17 deletions

View file

@ -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