Uh oh!
There was an error while loading. Please reload this page.
Implement Chalk lowering rule Normalize-From-Impl - #49626
Conversation
fanzier
commented
Apr 3, 2018
Note that this is my first real rustc contribution. So if I'm doing things wrong, let me know! Also I wasn't sure how to test where clauses for associated types ( |
nikomatsakis
commented
Apr 4, 2018
Welcome! Sorry for me being slow! Still catching up from Rust All Hands. |
nikomatsakis
commented
Apr 4, 2018
Yep. Still a WIP. |
There was a problem hiding this comment.
Nit: can we make this for_associated_type_value or impl_item, something like that?
There was a problem hiding this comment.
Good point, changed it to type_value.
TimNN
commented
Apr 7, 2018
Your PR failed on Travis. Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
fanzier
commented
Apr 7, 2018
The Travis failure seems to be spurious. |
nikomatsakis
commented
Apr 10, 2018
@bors r+ |
bors
commented
Apr 10, 2018
📌 Commit 2a18fdc has been approved by |
kennytm
commented
Apr 10, 2018
@bors r- The log bot is still being tested, so don't rely entirely on it yet. The Travis failure is legit. |
Apart from the travis failure, seems mostly good, but there are some things which I think are not necessary, like adding the where clauses of the impl in the right hand side of As for other rules related to associated types, I'd prefer to start by implementing all of them in chalk (not done yet, but they are fully described here ), and we'll probably revisit the rules in rustc one this has been done and proof tested in chalk. |
fanzier
commented
Apr 11, 2018
@kennytm Good to know. I rebased and updated the code. @scalexm I implemented the rule from the rustc guide (https://rust-lang-nursery.github.io/rustc-guide/traits-lowering-rules.html#lowering-impl-items). If I'm understanding you correctly, you're saying that the |
@fanzier the rustc guide is not entirely up to date when it comes to associated types (especially because the rules have not been fully implemented and tested in chalk yet). I’m not sure yet if we want to assert that the trait is implemented in the rather than rewriting all the where clauses denoted by |
fanzier
commented
Apr 11, 2018
@scalexm Thanks for the explanation, that makes sense. I'll change it as you suggested. |
nikomatsakis
commented
Apr 11, 2018
@bors delegate=scalexm |
bors
commented
Apr 11, 2018
✌️ @scalexm can now approve this pull request |
kennytm
commented
Apr 12, 2018
@bors retry rollup |
Implement Chalk lowering rule Normalize-From-Impl This extends the Chalk lowering pass with the "Normalize-From-Impl" rule for generating program clauses from a trait definition as part of rust-lang#49177. r? @nikomatsakis
kennytm
commented
Apr 13, 2018
@bors r- rollup- Unfortunately #49800 has changed some types and caused this PR to fail. See #49939 (comment) for error log. |
fanzier
commented
Apr 17, 2018
Can someone please approve this again? I only rebased and made it compile. |
scalexm
commented
Apr 17, 2018
@bors r+ |
bors
commented
Apr 17, 2018
📌 Commit b7c4a57 has been approved by |
bors
commented
Apr 17, 2018
Implement Chalk lowering rule Normalize-From-Impl This extends the Chalk lowering pass with the "Normalize-From-Impl" rule for generating program clauses from a trait definition as part of #49177. r? @nikomatsakis
bors
commented
Apr 17, 2018
☀️ Test successful - status-appveyor, status-travis |
This extends the Chalk lowering pass with the "Normalize-From-Impl" rule for generating program clauses from a trait definition as part of #49177.
r? @nikomatsakis