Skip to content

Commit 7d4a702

Browse files
committed
---
yaml --- r: 176060 b: refs/heads/try c: 2adc8b5 h: refs/heads/master v: v3
1 parent c00e124 commit 7d4a702

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: a530cc9706324ad44dba464d541a807eb5afdb08
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 777435990e0e91df6b72ce80c9b6fa485eeb5daa
5-
refs/heads/try: 59775bb955e7fdb7d1f9cddd27ab64e3676f8e51
5+
refs/heads/try: 2adc8b529ada1d697ec51a94164d9b3f66a40b79
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_typeck/coherence/overlap.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ impl<'cx, 'tcx> OverlapChecker<'cx, 'tcx> {
3939
// check can populate this table further with impls from other
4040
// crates.
4141
let trait_def_ids: Vec<(ast::DefId, Vec<ast::DefId>)> =
42-
self.tcx.trait_impls.borrow().iter().map(|(&k, v)| (k, v.borrow().clone())).collect();
42+
self.tcx.trait_impls.borrow().iter().map(|(&k, v)| {
43+
// FIXME -- it seems like this method actually pushes
44+
// duplicate impls onto the list
45+
ty::populate_implementations_for_trait_if_necessary(self.tcx, k);
46+
(k, v.borrow().clone())
47+
}).collect();
4348

4449
for &(trait_def_id, ref impls) in trait_def_ids.iter() {
4550
self.check_for_overlapping_impls_of_trait(trait_def_id, impls);
@@ -53,11 +58,6 @@ impl<'cx, 'tcx> OverlapChecker<'cx, 'tcx> {
5358
debug!("check_for_overlapping_impls_of_trait(trait_def_id={})",
5459
trait_def_id.repr(self.tcx));
5560

56-
// FIXME -- it seems like this method actually pushes
57-
// duplicate impls onto the list
58-
ty::populate_implementations_for_trait_if_necessary(self.tcx,
59-
trait_def_id);
60-
6161
for (i, &impl1_def_id) in trait_impls.iter().enumerate() {
6262
if impl1_def_id.krate != ast::LOCAL_CRATE {
6363
// we don't need to check impls if both are external;

0 commit comments

Comments
 (0)