Uh oh!
There was an error while loading. Please reload this page.
Include Refs in Valtree Creation - #95426
Conversation
rust-highfive
commented
Mar 29, 2022
Some changes occured to the CTFE / Miri engine cc @rust-lang/miri |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fd8b2ac to
95f8653CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lcnr
commented
Apr 13, 2022
I think this is mostly ready but won't be able to review this myself during the next 2 weeks r? @oli-obk |
oli-obk
commented
Apr 13, 2022
@bors r+ Didn't do another full review, just an incremental from my last review |
bors
commented
Apr 13, 2022
📌 Commit 4b126b8 has been approved by |
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Apr 13, 2022
@bors r- I am still confused, I wouldn't expect any types to be treated specially in the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Apr 14, 2022
Also, is this code covered by any tests? Or is that not possible yet? |
b-naber
commented
Apr 14, 2022
Don't think it's possible to test this yet, since we aren't calling this function anywhere yet. |
oli-obk
commented
Apr 14, 2022
r? @RalfJung I'm going on vacation 😜 |
RalfJung
commented
Apr 16, 2022
Okay, that's a bummer. Not sure how I feel about landing dead code but I guess y'all have a plan. ;) |
| } | ||
| } | ||
| const_to_valtree_inner(ecx, &derefd_place) | ||
| } |
There was a problem hiding this comment.
Nice, now the Ref case looks like I hoped it would. :)
RalfJung
commented
Apr 16, 2022
@bors r=RalfJung,oli-obk |
bors
commented
Apr 16, 2022
📌 Commit d8205cd has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#94985 (Parse inner attributes on inline const block) - rust-lang#95006 (Reject `#[thread_local]` attribute on non-static items) - rust-lang#95426 (Include Refs in Valtree Creation) - rust-lang#95908 (Inline `shallow_resolve_ty` into `ShallowResolver`) - rust-lang#96058 (separate flock implementations into separate modules) - rust-lang#96088 (Update mdbook) - rust-lang#96118 (rustdoc: Rename `def_id` into `item_id` when the type is `ItemId` for readability) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This adds references to
const_to_valtree, which isn't used in the compiler yet, but after the previous changes we made to the thir and mir representations and this change we should be able to finally introduce them in the next PR.I wasn't able to properly test this code, except indirectly by including a call of
const_to_valtreein the code that currently creates constants (turn_into_const_value).r? @lcnr
cc @oli-obk@RalfJung