Skip to content

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