Skip to content

Commit 524f7e1

Browse files
committed
---
yaml --- r: 27686 b: refs/heads/try c: e82d2ef h: refs/heads/master v: v3
1 parent d65784b commit 524f7e1

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 9a77a17e3b51f2185fbbab2a4a301d6572834c72
5+
refs/heads/try: e82d2ef7639252ba365427ea1ad0e285986b5bf8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/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)