about summary refs log tree commit diff
path: root/src/comp/syntax/ast_util.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_util.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_util.rs')
-rw-r--r--src/comp/syntax/ast_util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/syntax/ast_util.rs b/src/comp/syntax/ast_util.rs
index 1aaa4c7a8f3..7744e03fe01 100644
--- a/src/comp/syntax/ast_util.rs
+++ b/src/comp/syntax/ast_util.rs
@@ -29,11 +29,11 @@ fn variant_def_ids(d: &def) -> {tg: def_id, var: def_id} {
 fn def_id_of_def(d: def) -> def_id {
     alt d {
       def_fn(id, _) { ret id; }
-      def_obj_field(id) { ret id; }
+      def_obj_field(id, _) { ret id; }
       def_mod(id) { ret id; }
       def_native_mod(id) { ret id; }
       def_const(id) { ret id; }
-      def_arg(id) { ret id; }
+      def_arg(id, _) { ret id; }
       def_local(id) { ret id; }
       def_variant(_, id) { ret id; }
       def_ty(id) { ret id; }