You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
馃殌 create a query for the program clauses needed to solve a given goal聽#49600
/// Returns the set of program clauses that might apply to/// `goal`. (This set can be over-approximated, naturally.)fnprogram_clauses(&self,environment:&I::Environment,goal:&I::DomainGoal,) -> Vec<I::ProgramClause>;
In Rustc, this is our chance to do some queries and figure out the full set of clauses. This is building on the work in #49177, where we create the lowering rules for a trait, item, etc (see also the rustc guide coverage).
The set of clauses is somewhat specific to the domain goal:
these come -- ultimately -- from the param environment
but because of implied bounds rules we need to combine with the rules from traits
we need to compute transitive closure of traits reachable from the env and combine their program clauses, or else iterate over "all traits" (which is actually not easy)
I have some code working towards this on my WIP branch for this issue
... the rest have to be written out :)
I'll probably keep iterating on this, but if somebody is keen to hack on it, I'd love to collaborate.
Activity
scalexm commentedon Nov 15, 2018
Implemented in #55203 and #55649.