Skip to content

Commit 06793c9

Browse files
committed
---
yaml --- r: 167715 b: refs/heads/master c: 7ae1c6b h: refs/heads/master i: 167713: d4650c1 167711: 96e1481 v: v3
1 parent 2fbebb4 commit 06793c9

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
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: cadd4335b4150f94b573eb3c87235d653cfba6d2
2+
refs/heads/master: 7ae1c6bc269cd0fddb45590a91d77e39b47a4965
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c89417130f042c58adc60012e7cddc4ef70b70b9
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/src/librustc_typeck/check/wf.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,8 @@ impl<'cx,'tcx> BoundsChecker<'cx,'tcx> {
269269
pub fn check_trait_ref(&mut self, trait_ref: &ty::TraitRef<'tcx>) {
270270
let trait_def = ty::lookup_trait_def(self.fcx.tcx(), trait_ref.def_id);
271271

272-
// TODO uncommented this line causes failures because the impl
273-
// obligations are not registered when we do a projection, and
274-
// in this case it's those obligations that make the link
275-
// between the normalized type ($1) and the result
276-
//
277-
// let bounds = self.fcx.instantiate_bounds(self.span, trait_ref.substs, &trait_def.generics);
278-
279-
let bounds = trait_def.generics.to_bounds(self.fcx.tcx(), trait_ref.substs);
272+
let bounds = self.fcx.instantiate_bounds(self.span, trait_ref.substs, &trait_def.generics);
273+
280274
self.fcx.add_obligations_for_parameters(
281275
traits::ObligationCause::new(
282276
self.span,

0 commit comments

Comments
 (0)