Uh oh!
There was an error while loading. Please reload this page.
Split up const_eval.rs - #67327
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Centril
commented
Dec 16, 2019
Btw... perhaps its time to consider moving const eval & interpretation out of librustc_mir into its own crate. (Not in this PR though, which is already doing god's work.) |
RalfJung
commented
Dec 22, 2019
I don't entirely understand the separation between |
oli-obk
commented
Dec 22, 2019
No, but I didn't feel like creating a deeper module structure right now, so I just split things by what they do, not necessarily increasing the modularity. |
RalfJung
commented
Dec 22, 2019
I don't understand what the criterion is that puts stuff into Could you elaborate? |
oli-obk
commented
Dec 22, 2019
|
RalfJung
commented
Dec 22, 2019
There are other queries though, right? The field projection and downcast stuff? To my untrained eye, the separation between the two files looks pretty arbitrary, and I am not sure if it helps. It's useful to separate things that can be neatly separated as it makes files shorter and thus stuff easier to find, but it is IMO bad to separate things that are hard to tell apart as it'll just mean I will have to check both of these files every single time as I cannot predict which one a given function fits into. |
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Dec 22, 2019
As an alternative split, what about putting everything needed by the two "main" queries into |
oli-obk
commented
Dec 22, 2019
That seems reasonable |
RalfJung
commented
Dec 22, 2019
Not sure if |
oli-obk
commented
Dec 22, 2019
The other functions left in |
bors
commented
Dec 22, 2019
☔ The latest upstream changes (presumably #67532) made this pull request unmergeable. Please resolve the merge conflicts. |
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Dec 23, 2019
👍 for the split. Any proposals for the |
oli-obk
commented
Dec 23, 2019
|
RalfJung
commented
Dec 23, 2019
Hm, |
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Dec 23, 2019
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 |
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Dec 23, 2019
r=me with tidy happy and the nit fixed. |
oli-obk
commented
Dec 23, 2019
@bors r=RalfJung |
bors
commented
Dec 23, 2019
📌 Commit 3719f4b3b688b81808dbcf65431ba185ff32616f has been approved by |
bors
commented
Dec 23, 2019
🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened |
rust-highfive
commented
Dec 23, 2019
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
commented
Dec 26, 2019
☔ The latest upstream changes (presumably #66919) made this pull request unmergeable. Please resolve the merge conflicts. |
oli-obk
commented
Dec 26, 2019
@bors r=RalfJung |
bors
commented
Dec 26, 2019
📌 Commit 07df147 has been approved by |
bors
commented
Dec 26, 2019
bors
commented
Dec 26, 2019
☀️ Test successful - checks-azure |
Fixes#67316
r? @RalfJung