Skip to content
Permalink
Browse files

verified that skip-binder is ok

  • Loading branch information...
nikomatsakis authored and alexreg committed Jun 5, 2019
1 parent e48dd12 commit a90042718848e25a7df29621592250ccecf78b4d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/librustc_typeck/astconv.rs
@@ -1149,8 +1149,8 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
//
// `<T as Iterator>::Item: Debug`
//
// Calling `skip_binder` is okay, because the predicates are re-bound later by
// `instantiate_poly_trait_ref`.
// Calling `skip_binder` is okay, because `add_bounds` expects the `param_ty`
// parameter to have a skipped binder.
let param_ty = tcx.mk_projection(assoc_ty.def_id, candidate.skip_binder().substs);
self.add_bounds(
param_ty,

0 comments on commit a900427

Please sign in to comment.
You can’t perform that action at this time.