Skip to content

Commit 5317d78

Browse files
committed
Extra and discardable instrumentation of replace_late_bound_regions_in_fn_sig.
1 parent 25fda8d commit 5317d78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc/middle/typeck/check/regionmanip.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ pub fn replace_late_bound_regions_in_fn_sig(
3232
let mut f = ty_fold::RegionFolder::regions(tcx, |r| {
3333
debug!("region r={}", r.to_str());
3434
match r {
35+
ty::ReEarlyBound(s, idx, nm) if s == fn_sig.binder_id => {
36+
debug!("replace_late_bound_regions_in_fn_sig FYI: EarlyBound({}, {}, {}), but not subst",
37+
s, idx, nm);
38+
r
39+
}
3540
ty::ReLateBound(s, br) if s == fn_sig.binder_id => {
3641
*map.find_or_insert_with(br, |_| mapf(br))
3742
}

0 commit comments

Comments
 (0)