From 71478f9ce3b5a7b3ef8cee9f9b2c77ff21e1ae9f Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 31 Jan 2013 16:47:19 -0800 Subject: Workaround for #4717: pad contents of ast. rs=breakage --- src/libsyntax/parse/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 81393310cda..48f38092f88 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 -- cgit 1.4.1-3-g733a5