]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/src/config.rs
Rollup merge of #104697 - dingxiangfei2009:fix-euv-control-flow, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 30 Nov 2022 06:00:30 +0000 (07:00 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 06:00:30 +0000 (07:00 +0100)
commit0c14551fe55ff009fd1dc178e5c5463a72fa4f71
tree7df78696fadd2c85ce8dd5a3af77432acf09f0f0
parentd38a99078cd3c4dadac1ba8b729ea77e8d1d5a82
parent9cd12cdf788e3bc46ff72ec7f77448316cfa64c3
Rollup merge of #104697 - dingxiangfei2009:fix-euv-control-flow, r=oli-obk

Restore control flow on error in EUV

cc `@Nilstrieb`

Fix #104649

Since #98574 refactored a piece of scrutinee memory categorization out as a subroutine, there is a subtle change in handling match arms especially when the categorization process faults and bails. In the correct case, it is not supposed to continue to process the arms any more. This PR restores the original control flow in EUV.

I promise to add a compile-fail test to demonstrate that this indeed fixes the issue after coming back from a nap.
compiler/rustc_hir_typeck/src/upvar.rs