File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
branches/try/src/rustc/middle/typeck Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
- refs/heads/try: 9a77a17e3b51f2185fbbab2a4a301d6572834c72
5
+ refs/heads/try: e82d2ef7639252ba365427ea1ad0e285986b5bf8
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
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