diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-01-31 16:47:19 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-01-31 16:56:12 -0800 |
| commit | 71478f9ce3b5a7b3ef8cee9f9b2c77ff21e1ae9f (patch) | |
| tree | 3ee766b7b2840673722de643d70769fe7e3161d4 /src/libsyntax/parse/parser.rs | |
| parent | 0682ad0eb9a6b268498a81b2e16a40544e44f0fa (diff) | |
| download | rust-71478f9ce3b5a7b3ef8cee9f9b2c77ff21e1ae9f.tar.gz rust-71478f9ce3b5a7b3ef8cee9f9b2c77ff21e1ae9f.zip | |
Workaround for #4717: pad contents of ast. rs=breakage
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
