Skip to content

Commit 05a4ebd

Browse files
committed
---
yaml --- r: 182255 b: refs/heads/beta c: 2adc8b5 h: refs/heads/master i: 182253: 00a8359 182251: c5df96d 182247: 4e21bdf 182239: a99eb81 v: v3
1 parent 11404cf commit 05a4ebd

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 59775bb955e7fdb7d1f9cddd27ab64e3676f8e51
34+
refs/heads/beta: 2adc8b529ada1d697ec51a94164d9b3f66a40b79
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

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