We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6c287 commit 2b1f349Copy full SHA for 2b1f349
compiler/rustc_borrowck/src/universal_regions.rs
@@ -946,9 +946,8 @@ fn for_each_late_bound_region_in_item<'tcx>(
946
tcx.late_bound_vars(tcx.local_def_id_to_hir_id(mir_def_id)).iter().enumerate()
947
{
948
if let ty::BoundVariableKind::Region(kind) = bound_var {
949
- let bound = ty::BoundRegion { var: ty::BoundVar::from_usize(idx), kind };
950
- let liberated_region =
951
- ty::Region::new_late_param_from_bound(tcx, mir_def_id.to_def_id(), bound);
+ let kind = ty::LateParamRegionKind::from_bound(ty::BoundVar::from_usize(idx), kind);
+ let liberated_region = ty::Region::new_late_param(tcx, mir_def_id.to_def_id(), kind);
952
f(liberated_region);
953
}
954
0 commit comments