-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Cleanup and consolidate operator/method dispatch code #18741
Comments
I am happy to mentor. |
@nikomatsakis is this ticket still valid? |
On Thu, Dec 31, 2015 at 10:26:12AM -0800, Steve Klabnik wrote:
yes |
Inspired by this and having been a long time fan of Rust and wanting to contribute, I'm interested in solving this issue. With that said, is there anything I need to know to get started? Also, where can I start looking? |
@Phyllostachys to be honest it's a bit out of cache for me. I'd have to go read into the code some to see where things stand. Anyway, usually a good place to start is to try and touch base at some point on IRC or over e-mail. |
I'll have to jump on IRC tonight. Who would I email if I emailed someone? |
@Phyllostachys me, my e-mail is on my github page |
@nikomatsakis Are you still willing to mentor this? |
@ahmedcharles Are you still interested? We can try to connect you with niko if so |
Well, it's quite out of cache, but let me start by giving a few very basic pointers. The relevant code is now found at |
@Mark-Simulacrum @nikomatsakis It's been a while since anyone showed any interest in this. If it's not picked up soon, I'll give it a shot, though I'm fairly certain I'll need more mentoring than what has a been provided so far. |
Let us know if you want further instructions and we'll do our best to connect you with @nikomatsakis. |
Work got in the way a bit, but I'm still planning on tackling this. Started looking through the README and code a bit, will get back to you if I need more info. |
Sorry for the long radio silence. Anyway, I just looked at this again and I don't think that this issue is a good fit for my current level of knowledge regarding |
@nikomatsakis is this still relevant? I'm not afraid to give it a try :) Seems like FIXMEs are still there: rust/src/librustc_typeck/check/mod.rs Line 3424 in 9fe05e9
rust/src/librustc_typeck/check/method/mod.rs Line 285 in 1756313
|
To be quite honest, I don't know! It's been an awfully long time. I imagine it's still relevant, though how much things can be improved I'm not sure. |
Came across this issue through E-Mentor, looked up the above mentioned FIXME locations now more than a year later just in case someone is interested to do a more thorough peek: rust/compiler/rustc_typeck/src/check/place_op.rs Lines 52 to 54 in 39eee17
rust/compiler/rustc_typeck/src/check/method/mod.rs Lines 293 to 295 in 39eee17
|
I'm removing E-mentor not because I wouldn't want to mentor but because i prefer to use the tag only for issues with some decent mentoring instructions, and I don't think this quite qualifies. |
fix: Delay initial flycheck until after build scripts
Once upon a time, both operator dispatch and method lookup went through the same tangled, twisty paths. It was a mess. But lo, they were severed and made two. Each could follow its own path. Overall, this is progress. But there is still room for improvement:
confirm::confirm
, but with some slight differences.[]
is basically the same asprobe
, but with some slight differences (e.g., at each step it consists builtin[]
as well).probe
loop, which usescheck::autoderef
, isn't able to be part of an inference transaction betweencheck::autoderef
uses operator dispatch which adds things into the main fulfillment context, thus leaking inference types etc outside the transaction.It feels like things could still be cleaned up a bit further, allowing for more code reuse and happiness all around.
Some FIXMEs are scattered about at relevant points of the code.
The text was updated successfully, but these errors were encountered: