Skip to content

Commit d7b72f9

Browse files
committed
---
yaml --- r: 23108 b: refs/heads/master c: e82d2ef h: refs/heads/master v: v3
1 parent 3e9df2b commit d7b72f9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9a77a17e3b51f2185fbbab2a4a301d6572834c72
2+
refs/heads/master: e82d2ef7639252ba365427ea1ad0e285986b5bf8
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rustc/middle/typeck/coherence.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,24 +288,24 @@ class CoherenceChecker {
288288
}
289289

290290
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);
293293
debug!{"(checking implementation) adding impl for trait \
294294
'%s', item '%s'",
295295
ast_map::node_id_to_str(self.crate_context.tcx.items,
296-
associated_trait.ref_id),
296+
trait_did.node),
297297
*item.ident};
298298

299299
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);
301301
}
302302

303303
// Add the implementation to the mapping from implementation to base
304304
// type def ID, if there is a base type for this implementation.
305305

306306
match get_base_type_def_id(self.inference_context,
307-
item.span,
308-
self_type.ty) {
307+
item.span,
308+
self_type.ty) {
309309
none => {
310310
// Nothing to do.
311311
}

0 commit comments

Comments
 (0)