Uh oh!
There was an error while loading. Please reload this page.
traits: Implement interning for Goal and Clause - #49800
Conversation
TimNN
commented
Apr 9, 2018
Your PR failed on Travis (raw log). 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 |
nikomatsakis
commented
Apr 9, 2018
@ishitatsuyuki nice! I added a note about this PR to the WG-traits planning meeting document, btw |
bors
commented
Apr 10, 2018
☔ The latest upstream changes (presumably #49435) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Apr 10, 2018
☔ The latest upstream changes (presumably #49390) made this pull request unmergeable. Please resolve the merge conflicts. |
nikomatsakis
left a comment
There was a problem hiding this comment.
Looks great! One change though -- foldable looks not right to me.
There was a problem hiding this comment.
Maybe worth a type alias? Goals<'tcx>? Or, maybe not. Meh.
There was a problem hiding this comment.
Wait. This doesn't look right. I expect something more like the impl for Slice. That is, super_fold_with should do something like:
fnsuper_fold_with<'gcx:'tcx,F:TypeFolder<'gcx,'tcx>>(&self,_folder:&mutF) -> Self{let goal:Goal<'tcx> = (*self).fold_with(folder);self.tcx().mk_goal(goal)}and visit_with:
fnsuper_visit_with(...){(*self).visit_with(visitor)}There was a problem hiding this comment.
Do we want an impl for &'tcx Clause<'tcx>? Probably, though maybe we don't need it yet.
There was a problem hiding this comment.
At some point we should think about making a macro for these "intern-wrapping impls"... but not, I suppose, in this PR.
nikomatsakis
commented
Apr 12, 2018
@bors r+ |
bors
commented
Apr 12, 2018
📌 Commit b15df80 has been approved by |
bors
commented
Apr 12, 2018
⌛ Testing commit b15df80 with merge f6af3b347421667028bda0ba004fb554dd706932... |
bors
commented
Apr 12, 2018
💔 Test failed - status-appveyor |
kennytm
commented
Apr 13, 2018
@bors retry 3 hour timeout in TimingsTop 10:
|
kennytm
commented
Apr 13, 2018
@bors p=9 |
bors
commented
Apr 13, 2018
traits: Implement interning for Goal and Clause r? @nikomatsakisClose#49054 Contains some refactoring for the interning mechanism, mainly aimed at reducing pain when changing types of interning map. This should be mostly good, although I'm not sure with the naming of `Goal::from_poly_domain_goal`.
bors
commented
Apr 13, 2018
☀️ Test successful - status-appveyor, status-travis |
r? @nikomatsakis
Close#49054
Contains some refactoring for the interning mechanism, mainly aimed at reducing pain when changing types of interning map.
This should be mostly good, although I'm not sure with the naming of
Goal::from_poly_domain_goal.