explain a good reason for why LocalValue does not store the type of the local#118482
explain a good reason for why LocalValue does not store the type of the local#118482bors merged 1 commit intorust-lang:masterfrom
Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
|
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
|
@bors r=WaffleLapkin |
|
@bors rollup |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (a1c65db): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 673.487s -> 671.079s (-0.36%) |
As found out by @lcnr in #112307, storing the type here can lead to subtle bugs when it gets out of sync with the MIR body. That's not the reason why the interpreter does it this way I think, but good thing we dodged that bullet. :)