Skip to content

Commit 2e850cc

Browse files
committed
w
1 parent 2b1f349 commit 2e850cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_hir_analysis/src/check/wfcheck.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,9 +2300,8 @@ fn lint_redundant_lifetimes<'tcx>(
23002300
tcx.fn_sig(owner_id).instantiate_identity().bound_vars().iter().enumerate()
23012301
{
23022302
let ty::BoundVariableKind::Region(kind) = var else { continue };
2303-
let bound: ty::BoundRegion =
2304-
ty::BoundRegion { var: ty::BoundVar::from_usize(idx), kind };
2305-
lifetimes.push(ty::Region::new_late_param_from_bound(tcx, owner_id.to_def_id(), bound));
2303+
let kind = ty::LateParamRegionKind::from_bound(ty::BoundVar::from_usize(idx), kind);
2304+
lifetimes.push(ty::Region::new_late_param(tcx, owner_id.to_def_id(), kind));
23062305
}
23072306
}
23082307
lifetimes.retain(|candidate| candidate.has_name());

0 commit comments

Comments
 (0)