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

fix: Coerce two FnDefs to fn pointers even if they are the same, if they are subtypes #18633

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

ChayimFriedman2
Copy link
Contributor

That's because they can be the same function but still different substs, which mandates them to coerce to fn pointers in order to unify.

Fixes #18626.

… are subtypes

That's because they can be the same function but still different substs, which mandates them to coerce to fn pointers in order to unify.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 7, 2024
@Veykril Veykril added this pull request to the merge queue Dec 8, 2024
Merged via the queue into rust-lang:master with commit 4c755e6 Dec 8, 2024
9 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the unify-fn branch December 8, 2024 10:09
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.

False non-primitive cast diagnostic
3 participants