Skip to content

Commit 6b2916a

Browse files
committed
add comment
1 parent a95a2ac commit 6b2916a

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_borrowck/src/diagnostics

1 file changed

+3
-0
lines changed

compiler/rustc_borrowck/src/diagnostics/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,9 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
687687
return;
688688
};
689689

690+
// Look for the where-bound which introduces the placeholder.
691+
// As we're using the HIR, we need to handle both `for<'a> T: Trait<'a>`
692+
// and `T: for<'a> Trait`<'a>.
690693
for pred in generics.predicates {
691694
let WherePredicateKind::BoundPredicate(WhereBoundPredicate {
692695
bound_generic_params,

0 commit comments

Comments
 (0)