diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index fc93d7ee613..7f2d3c8e424 100644 --- a/src/librustc_typeck/astconv.rs +++ b/src/librustc_typeck/astconv.rs @@ -1149,8 +1149,8 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o { // // `::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,