Add bug! back to late_bound_vars query
This commit is contained in:
parent
4427af0827
commit
2768c2fb25
2 changed files with 7 additions and 1 deletions
|
@ -869,6 +869,10 @@ fn for_each_late_bound_region_in_item<'tcx>(
|
|||
mir_def_id: LocalDefId,
|
||||
mut f: impl FnMut(ty::Region<'tcx>),
|
||||
) {
|
||||
if !tcx.def_kind(mir_def_id).is_fn_like() {
|
||||
return;
|
||||
}
|
||||
|
||||
for bound_var in tcx.late_bound_vars(tcx.hir().local_def_id_to_hir_id(mir_def_id)) {
|
||||
let ty::BoundVariableKind::Region(bound_region) = bound_var else { continue; };
|
||||
let liberated_region = tcx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue