-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include Refs in Valtree Creation #95426
Conversation
Some changes occured to the CTFE / Miri engine cc @rust-lang/miri |
fd8b2ac
to
95f8653
Compare
I think this is mostly ready but won't be able to review this myself during the next 2 weeks r? @oli-obk |
@bors r+ Didn't do another full review, just an incremental from my last review |
📌 Commit 4b126b8 has been approved by |
@bors r- I am still confused, I wouldn't expect any types to be treated specially in the |
Also, is this code covered by any tests? Or is that not possible yet? |
Don't think it's possible to test this yet, since we aren't calling this function anywhere yet. |
r? @RalfJung I'm going on vacation 😜 |
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) | ||
} | ||
} | ||
const_to_valtree_inner(ecx, &derefd_place) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, now the Ref
case looks like I hoped it would. :)
@bors r=RalfJung,oli-obk |
📌 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_valtree
in the code that currently creates constants (turn_into_const_value
).r? @lcnr
cc @oli-obk @RalfJung