We have a comment in
eval_context.rs that says "// statics and constants don't have
Storage* statements, no need to look for them". But that doesn't seem true any more, check the MIR of this:
was that a deliberate change? Cc @oli
I'm not sure if the comment was ever true
This comment is from very early miri
when we still pushed stack frames for constants and statics
I remember adding that comment. It was true back then. :)
wait we don't do that any more?
CTFE has a stack frame for the outermost const/static item (and then the const fn it calls), doesn't it?
yea, but we used to also push stack frames for referenced statics/constants if they weren't computed yet
yeah I remember, we used to compute statics/consts with the Miri machine on the same stack as the "main" program
it was crazy^^