about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-01-15 14:59:39 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-20 14:08:18 -0800
commit8cdc3fda11b2e341f305c03678a04c6bb01ce635 (patch)
tree203eb55d29526de6c6148fd603d94d597165334c /src/libsyntax/ast.rs
parent8a3a1fc1489fb1f313fdd75af4e73a6a3b271ce2 (diff)
downloadrust-8cdc3fda11b2e341f305c03678a04c6bb01ce635.tar.gz
rust-8cdc3fda11b2e341f305c03678a04c6bb01ce635.zip
convert ast::ty into a struct
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 4b3962efc7f..4ae99d03c8d 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1040,7 +1040,11 @@ impl float_ty : cmp::Eq {
 
 #[auto_encode]
 #[auto_decode]
-type Ty = {id: node_id, node: ty_, span: span};
+struct Ty {
+    id: node_id,
+    node: ty_,
+    span: span,
+}
 
 // Not represented directly in the AST, referred to by name through a ty_path.
 #[auto_encode]