Skip to content

Commit 2b1f349

Browse files
committed
w
1 parent ad6c287 commit 2b1f349

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_borrowck/src/universal_regions.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,8 @@ fn for_each_late_bound_region_in_item<'tcx>(
946946
tcx.late_bound_vars(tcx.local_def_id_to_hir_id(mir_def_id)).iter().enumerate()
947947
{
948948
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);
949+
let kind = ty::LateParamRegionKind::from_bound(ty::BoundVar::from_usize(idx), kind);
950+
let liberated_region = ty::Region::new_late_param(tcx, mir_def_id.to_def_id(), kind);
952951
f(liberated_region);
953952
}
954953
}

0 commit comments

Comments
 (0)