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-14 21:36:27 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-01-14 21:36:27 -0800
commit293cd3480c10855de68503db36c6cc3ce8988b54 (patch)
tree34ded4b28bd49ec489bb7499b1fb02fd8767dcad /src/libsyntax/ast.rs
parent4bcd19f6be51d7fb26b0930c8a3354b9222143ff (diff)
downloadrust-293cd3480c10855de68503db36c6cc3ce8988b54.tar.gz
rust-293cd3480c10855de68503db36c6cc3ce8988b54.zip
convert ast::{field_,capture_item_,mt} and middle::ty::mt into structs
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index c3f2eac8a2a..6f2ffe00849 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -670,7 +670,11 @@ struct arm {
 
 #[auto_encode]
 #[auto_decode]
-type field_ = {mutbl: mutability, ident: ident, expr: @expr};
+struct field_ {
+    mutbl: mutability,
+    ident: ident,
+    expr: @expr,
+}
 
 type field = spanned<field_>;
 
@@ -762,12 +766,12 @@ enum expr_ {
 
 #[auto_encode]
 #[auto_decode]
-type capture_item_ = {
+struct capture_item_ {
     id: int,
     is_move: bool,
     name: ident, // Currently, can only capture a local var.
-    span: span
-};
+    span: span,
+}
 
 type capture_item = @capture_item_;
 
@@ -923,7 +927,10 @@ impl lit_: cmp::Eq {
 // type structure in middle/ty.rs as well.
 #[auto_encode]
 #[auto_decode]
-type mt = {ty: @Ty, mutbl: mutability};
+struct mt {
+    ty: @Ty,
+    mutbl: mutability,
+}
 
 #[auto_encode]
 #[auto_decode]