Function rustc_mir_build::build::expr::as_constant::lit_to_mir_constant
source · pub(crate) fn lit_to_mir_constant<'tcx>(
tcx: TyCtxt<'tcx>,
lit_input: LitToConstInput<'tcx>
) -> Result<ConstantKind<'tcx>, LitToConstError>