diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-10-28 15:22:49 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-10-29 10:34:17 -0700 |
| commit | 7e77bf17694e31c741fe3a31c7eca5437d9cb6d5 (patch) | |
| tree | 07fbf75c901955bc5b527929785e544829da92b0 /src/libsyntax/ast.rs | |
| parent | e6650c87a3800264a043b7f129e6a4841c4cc3f7 (diff) | |
| download | rust-7e77bf17694e31c741fe3a31c7eca5437d9cb6d5.tar.gz rust-7e77bf17694e31c741fe3a31c7eca5437d9cb6d5.zip | |
librustc: Implement the `proc` type as sugar for `~once fn` and `proc`
notation for closures, and disable the feature gate for `once fn` if used with the `~` sigil.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 3467e1aaadc..cf72455a83a 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -537,6 +537,7 @@ pub enum Expr_ { ExprLoop(Block, Option<Ident>), ExprMatch(@Expr, ~[Arm]), ExprFnBlock(fn_decl, Block), + ExprProc(fn_decl, Block), ExprDoBody(@Expr), ExprBlock(Block), |
