Skip to content

Commit c2630bc

Browse files
Add it back
1 parent 865b9ab commit c2630bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

compiler/rustc_hir_analysis/src/check/wfcheck.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,14 @@ fn receiver_is_valid<'tcx>(
17521752
// We cannot proceed.
17531753
break;
17541754
}
1755+
1756+
// Register the bound, in case it has any region side-effects.
1757+
wfcx.register_bound(
1758+
cause.clone(),
1759+
wfcx.param_env,
1760+
potential_self_ty,
1761+
receiver_trait_def_id,
1762+
);
17551763
}
17561764
}
17571765

0 commit comments

Comments
 (0)