Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore control flow on error in EUV #104697

Merged
merged 2 commits into from
Nov 30, 2022

Conversation

dingxiangfei2009
Copy link
Contributor

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.

@rustbot
Copy link
Collaborator

rustbot commented Nov 21, 2022

r? @oli-obk

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 21, 2022
@dingxiangfei2009
Copy link
Contributor Author

This is going to take a bit longer since the original reported code is a little hard to reduce to a smaller reproduction.

@dingxiangfei2009
Copy link
Contributor Author

Test is added.

@oli-obk
Copy link
Contributor

oli-obk commented Nov 28, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Nov 28, 2022

📌 Commit 9cd12cd has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 28, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 30, 2022
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#104697 (Restore control flow on error in EUV)
 - rust-lang#104811 (feat: implement TcpStream shutdown for wasm32-wasi)
 - rust-lang#105039 (Fix an ICE parsing a malformed literal in `concat_bytes!`.)
 - rust-lang#105071 (Add Nicholas Nethercote to `.mailmap`.)
 - rust-lang#105079 (Add bots to `.mailmap`)

Failed merges:

 - rust-lang#105074 (Add Nicholas Bishop to `.mailmap`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0c14551 into rust-lang:master Nov 30, 2022
@rustbot rustbot added this to the 1.67.0 milestone Nov 30, 2022
@dingxiangfei2009 dingxiangfei2009 deleted the fix-euv-control-flow branch July 29, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

internal error: entered unreachable code: we captured two identical projections
4 participants