about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-05-10 15:57:27 -0400
committerNiko Matsakis <niko@alum.mit.edu>2013-05-16 14:21:02 -0400
commit035c01af93fd23f10e233a8a9b651af20744e1d1 (patch)
tree226edd1b4ba496dedd2c4aeb450b49384d0845d6 /src/libsyntax/ast.rs
parent53196bb364426fb2b8db16f6748836779cd031c7 (diff)
downloadrust-035c01af93fd23f10e233a8a9b651af20744e1d1.tar.gz
rust-035c01af93fd23f10e233a8a9b651af20744e1d1.zip
Add BuiltinBounds to closure type: parse and handle subtyping,
but do not integrate with kindck etc (requires a snapshot first)
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 4a3ae7d94ad..dcbbd7ab531 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -828,7 +828,8 @@ pub struct TyClosure {
     lifetimes: OptVec<Lifetime>,
     purity: purity,
     onceness: Onceness,
-    decl: fn_decl
+    decl: fn_decl,
+    bounds: OptVec<TyParamBound>
 }
 
 #[deriving(Eq, Encodable, Decodable)]