Treat static refs as mir::ConstantKind::Val
#93800
Merged
mir::ConstantKind::Val
#93800