Uh oh!
There was an error while loading. Please reload this page.
rustc_trans: reorganize CrateContext and rename context types. - #47209
Conversation
petrochenkov
commented
Jan 5, 2018
Some notes:
Type checking has commonly used and very similarly named
|
eddyb
commented
Jan 5, 2018
So the divergence is intentional but I'm not sure yet about |
nikomatsakis
commented
Jan 5, 2018
I'm not entirely sure how I feel about cc @rust-lang/compiler -- anybody else care to leave their 2 cents? |
eddyb
commented
Jan 5, 2018
My line of reasoning is that using one letter with a Hence, |
nikomatsakis
commented
Jan 5, 2018
@eddyb I think I agree with that reasoning. |
bors
commented
Jan 6, 2018
☔ The latest upstream changes (presumably #47225) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Jan 6, 2018
☔ The latest upstream changes (presumably #47235) made this pull request unmergeable. Please resolve the merge conflicts. |
michaelwoerister
commented
Jan 8, 2018
I think that |
nikomatsakis
commented
Jan 8, 2018
It does seem like |
nikomatsakis
commented
Jan 9, 2018
Having let this sit for a bit, I feel like I'm leaning mildly against the renaming of |
nikomatsakis
commented
Jan 9, 2018
@eddyb and I were chatting on IRC and discussing the full set of names. I feel like this change wants to take all of them into account. One thought we had was that the name "tcx", while it has a lot of history in it, isn't especially meaningful -- and as we move to more and more querification, it will become increasingly inappropriate (because it's the context for more than types). We were thinking that "query context" would be a better name, and that then one might write just |
nikomatsakis
commented
Jan 11, 2018
@michaelwoerister@pnkfelix@petrochenkov thoughts on previous comment? |
petrochenkov
commented
Jan 11, 2018
@nikomatsakis |
michaelwoerister
commented
Jan 12, 2018
I like |
nikomatsakis
commented
Jan 13, 2018
OK. I think I'm tired of debating about this. @eddyb do what you feel is best =) |
bors
commented
Jan 14, 2018
☔ The latest upstream changes (presumably #47223) made this pull request unmergeable. Please resolve the merge conflicts. |
eddyb
commented
Jan 15, 2018
@bors r=nikomatsakis |
bors
commented
Jan 15, 2018
📌 Commit 4e40a0d has been approved by |
bors
commented
Jan 16, 2018
rustc_trans: reorganize CrateContext and rename context types.
Firstly, the `{Shared,Local}CrateContext` hasn't been meaningful for a while now, and this PR resolves it by moving all their fields to `CrateContext` and removing redundant accessor methods.
Secondly, this PR contains the following mass-renames:
* `ccx: CrateContext` -> `cx: CodegenCx`
* `mircx: MirContext` -> `fx: FunctionCx`
* `bcx: Builder` -> `bx: Builder`
r? @nikomatsakisbors
commented
Jan 16, 2018
☀️ Test successful - status-appveyor, status-travis |
Zoxc
commented
Jan 25, 2018
Just for reference, I prefer using the same lifetime name for the global interner lifetime instead of it sometimes being |
nikomatsakis
commented
Jan 26, 2018
I also think I would prefer that, though I've not tried it. Or at least I think it would be clearer. |
Firstly, the
{Shared,Local}CrateContexthasn't been meaningful for a while now, and this PR resolves it by moving all their fields toCrateContextand removing redundant accessor methods.Secondly, this PR contains the following mass-renames:
ccx: CrateContext->cx: CodegenCxmircx: MirContext->fx: FunctionCxbcx: Builder->bx: Builderr? @nikomatsakis