File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -288,24 +288,24 @@ class CoherenceChecker {
288
288
}
289
289
290
290
for associated_traits. each |associated_trait| {
291
- let def = self . crate_context . tcx . def_map . get
292
- ( associated_trait. ref_id ) ;
291
+ let trait_did =
292
+ self . trait_ref_to_trait_def_id ( associated_trait) ;
293
293
debug ! { "(checking implementation) adding impl for trait \
294
294
'%s', item '%s'",
295
295
ast_map:: node_id_to_str( self . crate_context. tcx. items,
296
- associated_trait . ref_id ) ,
296
+ trait_did . node ) ,
297
297
* item. ident} ;
298
298
299
299
let implementation = self . create_impl_from_item ( item) ;
300
- self . add_trait_method ( def_id_of_def ( def ) , implementation) ;
300
+ self . add_trait_method ( trait_did , implementation) ;
301
301
}
302
302
303
303
// Add the implementation to the mapping from implementation to base
304
304
// type def ID, if there is a base type for this implementation.
305
305
306
306
match get_base_type_def_id ( self . inference_context ,
307
- item. span ,
308
- self_type. ty ) {
307
+ item. span ,
308
+ self_type. ty ) {
309
309
none => {
310
310
// Nothing to do.
311
311
}
You can’t perform that action at this time.
0 commit comments