We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 865b9ab commit c2630bcCopy full SHA for c2630bc
compiler/rustc_hir_analysis/src/check/wfcheck.rs
@@ -1752,6 +1752,14 @@ fn receiver_is_valid<'tcx>(
1752
// We cannot proceed.
1753
break;
1754
}
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
+ );
1763
1764
1765
0 commit comments