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

Parses a LitKind to a Constant.