about summary refs log tree commit diff
path: root/src/comp/syntax/ast.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-01 10:03:17 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-01 16:32:38 +0200
commit34ae491ca9f7ad7549fa0d767f7452055df875d8 (patch)
tree911eb4929b9b47f4ade295193cfddc8bb9b09870 /src/comp/syntax/ast.rs
parent9ba3fe5e40ed404f8865c0be4f9b5827d5861439 (diff)
downloadrust-34ae491ca9f7ad7549fa0d767f7452055df875d8.tar.gz
rust-34ae491ca9f7ad7549fa0d767f7452055df875d8.zip
Store arg mode and objfield mutability in their def
Diffstat (limited to 'src/comp/syntax/ast.rs')
-rw-r--r--src/comp/syntax/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs
index 44ed863351e..f19bad3b478 100644
--- a/src/comp/syntax/ast.rs
+++ b/src/comp/syntax/ast.rs
@@ -29,11 +29,11 @@ type ty_param = {ident: ident, kind: kind};
 
 tag def {
     def_fn(def_id, purity);
-    def_obj_field(def_id);
+    def_obj_field(def_id, mutability);
     def_mod(def_id);
     def_native_mod(def_id);
     def_const(def_id);
-    def_arg(def_id);
+    def_arg(def_id, mode);
     def_local(def_id);
     def_variant(def_id, /* tag */def_id);