Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up🚀 create a query for the program clauses needed to solve a given goal #49600
Comments
nikomatsakis
added
A-traits
WG-compiler-traits
labels
Apr 2, 2018
XAMPPRocky
added
C-enhancement
T-lang
labels
Jun 29, 2018
nikomatsakis
assigned
scalexm
Oct 9, 2018
This comment has been minimized.
This comment has been minimized.
scalexm
closed this
Nov 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nikomatsakis commentedApr 2, 2018
•
edited
One of the key parts of the interface between the Chalk Solver and rustc is when the solver requests the program clauses to solve a given goal:
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:
Implemented(P0: Trait<...>)TraitFromEnv(P0: Trait<..>)I'll probably keep iterating on this, but if somebody is keen to hack on it, I'd love to collaborate.