diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-07-23 12:43:29 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-08-13 18:09:14 -0700 |
| commit | a63003fe1aac487d3c0c527c4c984375c998de99 (patch) | |
| tree | 9472596efc5cd69f9f1038877d79b9173b11c99c /src/libsyntax/ast_map | |
| parent | 28b5e4588f5d78d2dab830245bc453dd666af617 (diff) | |
| download | rust-a63003fe1aac487d3c0c527c4c984375c998de99.tar.gz rust-a63003fe1aac487d3c0c527c4c984375c998de99.zip | |
librustc: Parse, but do not fully turn on, the `ref` keyword for
by-reference upvars. This partially implements RFC 38. A snapshot will be needed to turn this on, because stage0 cannot yet parse the keyword. Part of #12381.
Diffstat (limited to 'src/libsyntax/ast_map')
| -rw-r--r-- | src/libsyntax/ast_map/blocks.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_map/blocks.rs b/src/libsyntax/ast_map/blocks.rs index a522f805543..83af390c4ed 100644 --- a/src/libsyntax/ast_map/blocks.rs +++ b/src/libsyntax/ast_map/blocks.rs @@ -206,7 +206,7 @@ impl FnLikeNode { }, ast_map::NodeMethod(ref m) => method(&**m), ast_map::NodeExpr(ref e) => match e.node { - ast::ExprFnBlock(ref decl, ref block) => + ast::ExprFnBlock(_, ref decl, ref block) => closure(ClosureParts::new(*decl, *block, e.id, e.span)), ast::ExprProc(ref decl, ref block) => closure(ClosureParts::new(*decl, *block, e.id, e.span)), |
