pub fn lit_to_mir_constant(lit: &LitKind, ty: Option<Ty<'_>>) -> Constant
Expand description

Parses a LitKind to a Constant.