about summary refs log tree commit diff
path: root/src/rustc/metadata/decoder.rs
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-08-23 18:17:16 -0700
committerMichael Sullivan <sully@msully.net>2012-08-23 19:40:01 -0700
commit0f996f70a632d1427801f20935a69a57fbb3679e (patch)
tree10bb420206b95838c5bd1b2ac6451cf93ef0b8f4 /src/rustc/metadata/decoder.rs
parent34886ed488f6cc18c3fdc20cdeccab6178e00c0f (diff)
Remove purity from fn_decl and move it out to containing AST elements.
Diffstat (limited to 'src/rustc/metadata/decoder.rs')
-rw-r--r--src/rustc/metadata/decoder.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rustc/metadata/decoder.rs b/src/rustc/metadata/decoder.rs
index 37f00be40ff..05457a710ea 100644
--- a/src/rustc/metadata/decoder.rs
+++ b/src/rustc/metadata/decoder.rs
@@ -695,13 +695,8 @@ fn get_trait_methods(intr: ident_interner, cdata: cmd, id: ast::node_id,
         } };
         let self_ty = get_self_ty(mth);
         vec::push(result, {ident: name, tps: bounds, fty: fty,
-                    self_ty: self_ty,
-                    purity: match item_family(mth) {
-                      UnsafeFn => ast::unsafe_fn,
-                      Fn => ast::impure_fn,
-                      PureFn => ast::pure_fn,
-                      _ => fail ~"bad purity"
-                    }, vis: ast::public});
+                           self_ty: self_ty,
+                           vis: ast::public});
     }
     #debug("get_trait_methods: }");
     @result