diff options
| author | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-08-09 10:41:00 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-08-09 11:10:09 -0700 |
| commit | e82d2ef7639252ba365427ea1ad0e285986b5bf8 (patch) | |
| tree | e1d7b4a7cbf5cbff0a2af92af9a414345185c90f /src/rustc | |
| parent | 9a77a17e3b51f2185fbbab2a4a301d6572834c72 (diff) | |
| download | rust-e82d2ef7639252ba365427ea1ad0e285986b5bf8.tar.gz rust-e82d2ef7639252ba365427ea1ad0e285986b5bf8.zip | |
Minor cleanup
Diffstat (limited to 'src/rustc')
| -rw-r--r-- | src/rustc/middle/typeck/coherence.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rustc/middle/typeck/coherence.rs b/src/rustc/middle/typeck/coherence.rs index d84b7ad69c0..985b54a325c 100644 --- a/src/rustc/middle/typeck/coherence.rs +++ b/src/rustc/middle/typeck/coherence.rs @@ -288,24 +288,24 @@ class CoherenceChecker { } for associated_traits.each |associated_trait| { - let def = self.crate_context.tcx.def_map.get - (associated_trait.ref_id); + let trait_did = + self.trait_ref_to_trait_def_id(associated_trait); debug!{"(checking implementation) adding impl for trait \ '%s', item '%s'", ast_map::node_id_to_str(self.crate_context.tcx.items, - associated_trait.ref_id), + trait_did.node), *item.ident}; let implementation = self.create_impl_from_item(item); - self.add_trait_method(def_id_of_def(def), implementation); + self.add_trait_method(trait_did, implementation); } // Add the implementation to the mapping from implementation to base // type def ID, if there is a base type for this implementation. match get_base_type_def_id(self.inference_context, - item.span, - self_type.ty) { + item.span, + self_type.ty) { none => { // Nothing to do. } |
