Replace ParamEnv with a new type in chalk context.#55040
Replace ParamEnv with a new type in chalk context.#55040bors merged 8 commits intorust-lang:masterfrom
ParamEnv with a new type in chalk context.#55040Conversation
src/librustc_traits/chalk_context.rs
Outdated
There was a problem hiding this comment.
Why doesn’t the terminology line up here anymore with chalk?
There was a problem hiding this comment.
Mmh at some point the terminology diverged, we use Clause in rustc for ProgramClause in chalk, and ProgramClause in rustc for ProgramClauseImplication in chalk. I agree we should somehow resolve that conflict.
There was a problem hiding this comment.
I think the meaning of these words I would like to be using:
- "clause" is one of the "base facts" we know to be true
- in particular, this includes clauses injected via hypothesis, e.g. the clause
AinA => G.
- in particular, this includes clauses injected via hypothesis, e.g. the clause
- "program clause" is something that was given in the "input program"
- in our case, this means the stuff we created by lowering impls and so forth
In particular, program clauses are available globally at all times, whereas clauses may only be available to some goals.
|
☔ The latest upstream changes (presumably #54858) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r=me once rebased |
|
The job 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 |
|
@bors r=nikomatsakis |
|
📌 Commit 0684ead65930bd8b24f0e9779e0db3d35d17760b has been approved by |
|
☔ The latest upstream changes (presumably #55093) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors r=nikomatsakis |
|
📌 Commit 55ce7a2 has been approved by |
Replace `ParamEnv` with a new type in chalk context. I left a few FIXMEs. r? @nikomatsakis
|
☀️ Test successful - status-appveyor, status-travis |
I left a few FIXMEs.
r? @nikomatsakis