aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-10 16:49:00 -0800
committerPatrick Walton <[email protected]>2011-03-10 16:49:00 -0800
commit7454b534112e8cb7b0192d28c8b8685db31ed283 (patch)
tree395f984b76c86319fbfca0e20726d74063e5897c /src/comp/front
parentrustc: Use the generic info from the item in bind thunks just as calls do. Un... (diff)
downloadrust-7454b534112e8cb7b0192d28c8b8685db31ed283.tar.xz
rust-7454b534112e8cb7b0192d28c8b8685db31ed283.zip
rustc: Build up a list of upvars inside foreach bodies
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/ast.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 56914800..584586f6 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -32,6 +32,7 @@ tag def {
def_const(def_id);
def_arg(def_id);
def_local(def_id);
+ def_upvar(def_id);
def_variant(def_id /* tag */, def_id /* variant */);
def_ty(def_id);
def_ty_arg(def_id);