Minor cleanup
This commit is contained in:
@@ -288,16 +288,16 @@ class CoherenceChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for associated_traits.each |associated_trait| {
|
for associated_traits.each |associated_trait| {
|
||||||
let def = self.crate_context.tcx.def_map.get
|
let trait_did =
|
||||||
(associated_trait.ref_id);
|
self.trait_ref_to_trait_def_id(associated_trait);
|
||||||
debug!{"(checking implementation) adding impl for trait \
|
debug!{"(checking implementation) adding impl for trait \
|
||||||
'%s', item '%s'",
|
'%s', item '%s'",
|
||||||
ast_map::node_id_to_str(self.crate_context.tcx.items,
|
ast_map::node_id_to_str(self.crate_context.tcx.items,
|
||||||
associated_trait.ref_id),
|
trait_did.node),
|
||||||
*item.ident};
|
*item.ident};
|
||||||
|
|
||||||
let implementation = self.create_impl_from_item(item);
|
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
|
// Add the implementation to the mapping from implementation to base
|
||||||
|
|||||||
Reference in New Issue
Block a user