Closed
Description
This would allow merging most of the code in
rust/src/librustc_mir/interpret/place.rs
Line 470 in 1114ab6
I suggest to create a single variant (Maybe just leave the Static
variant), but modify the Static
struct fields for the DefId
(update docs that the DefId
is the one of the containing function in case of a promoted) and additionally add an Option<Promoted>
field.
Metadata
Metadata
Assignees
Labels
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Constant evaluation, covers all const contexts (static, const fn, ...)Category: PRs that clean code up or issues documenting cleanup.Call for participation: Help is requested to fix this issue.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Status: Blocked on something else such as an RFC or other implementation work.