about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-24 19:29:54 +0200
committerGitHub <noreply@github.com>2023-10-24 19:29:54 +0200
commit61ff4dbedd4b8337080959a38e38e07d7d1456be (patch)
tree5f24b6d0ec322e7ad1a75146c7c3321c0035f0f9 /compiler/rustc_mir_transform/src
parent845c414fae079ab3e9e61fa628de774c632c5058 (diff)
parent2bba98b1216e21fcb18e2242c491ae7205af8308 (diff)
downloadrust-61ff4dbedd4b8337080959a38e38e07d7d1456be.tar.gz
rust-61ff4dbedd4b8337080959a38e38e07d7d1456be.zip
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions