1
Fork 0

better names and a comment

This commit is contained in:
Michael Goulet 2022-12-28 04:16:36 +00:00
parent c7b414adb6
commit 96d8011fa8
7 changed files with 42 additions and 9 deletions

View file

@ -2284,7 +2284,7 @@ fn confirm_impl_trait_in_trait_candidate<'tcx>(
obligation.param_env,
cause.clone(),
obligation.recursion_depth + 1,
tcx.bound_trait_impl_trait_tys(impl_fn_def_id)
tcx.bound_return_position_impl_trait_in_trait_tys(impl_fn_def_id)
.map_bound(|tys| {
tys.map_or_else(|_| tcx.ty_error(), |tys| tys[&obligation.predicate.def_id])
})