Skip to content

Do not consider match/let/ref of place that evaluates to ! to diverge, disallow coercions from them too #18278

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

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

ShoyuVanilla
Copy link
Member

Resolves #18237

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 10, 2024
"#]],
)
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a test that make type mismatch error without this PR, but it doesn't emit the error, either with or without this PR.
https://github.com/rust-lang/rust/pull/129392/files#r1746775782
I'll address it as a new issue

@@ -539,3 +539,249 @@ fn test() {
"#,
);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are all of the tests that included in the rustc's original PR, except one case (commented below) and mir ones

@Veykril
Copy link
Member

Veykril commented Oct 15, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Oct 15, 2024

📌 Commit 91293ea has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 15, 2024

⌛ Testing commit 91293ea with merge 418c136...

@bors
Copy link
Contributor

bors commented Oct 15, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 418c136 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Oct 15, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 418c136 to master...

@bors bors merged commit 418c136 into rust-lang:master Oct 15, 2024
11 checks passed
@bors
Copy link
Contributor

bors commented Oct 15, 2024

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not consider match/let/ref of place that evaluates to ! to diverge, disallow coercions from them too
4 participants