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

Verify type checking of if-statement conditions #2598

Closed
powerboat9 opened this issue Sep 2, 2023 · 1 comment
Closed

Verify type checking of if-statement conditions #2598

powerboat9 opened this issue Sep 2, 2023 · 1 comment

Comments

@powerboat9
Copy link
Contributor

          LGTM i wonder if it is infact a coercion/cast-site in rustc for this case lets go with unify for now

Originally posted by @philberty in #2596 (review)

@tamaroning
Copy link
Contributor

it seems that if-conditions are unification cites. coercions do not happen here.
https://rust-lang.github.io/rfcs/0401-coercions.html#coercions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants