Matthias Krüger 61ff4dbedd
Rollup merge of #116792 - JonasAlaif:renumber-fix, r=b-naber
Avoid unnecessary renumbering during borrowck

Currently, after renumbering there are always unused `RegionVid`s if the return type contains any regions, this is due to `visit_ty` being called twice on the same `Ty`: once with `TyContext::ReturnTy` and once with `TyContext::LocalDecl { local: _0 }`. This PR skips renumbering the first time around.
2023-10-24 19:29:54 +02:00
..
2023-06-20 20:55:31 +08:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:10:38 +00:00
2023-10-21 12:10:30 +00:00
2023-04-28 20:19:48 +02:00
2023-10-20 21:14:01 +00:00
2023-10-16 14:29:36 +02:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00