rustc_mir_build::build::expr::as_constant

Function lit_to_mir_constant

Source
fn lit_to_mir_constant<'tcx>(
    tcx: TyCtxt<'tcx>,
    lit_input: LitToConstInput<'tcx>,
) -> Result<Const<'tcx>, LitToConstError>