-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compiler: implement autocasting in a better way #9501
Compiler: implement autocasting in a better way #9501
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
d63d454
to
9e9e9d2
Compare
Nice! Does this also fix #8973 ? |
@jwoertink No, that has nothing to do with autocasting. #8973 can't be fixed without a major overhaul to how methods are looked up. And even then, I'm not sure how it should work. So it needs a bit more "thinking" time before it can be fixed. Not from the implementation side, but the actual semantics. |
CI is happy 🎉 |
9e9e9d2
to
e423bcc
Compare
@waj Thanks! I rebased this branch against master just to make sure CI passes... CI also seemed stuck. |
I thought of a better, more resilient way to implement autocasting. This removes the existing hacks around it.
I added a big chunk of comment explaining how this is currently done, and what
with_literals
andanalyze_all
means, with a bunch of examples.Makes #9492 obsolete.