pub fn lit_to_mir_constant<'tcx>( lit: &LitKind, ty: Option<Ty<'tcx>>, ) -> Constant<'tcx>
Parses a LitKind to a Constant.
LitKind
Constant