Function rustc_mir_build::thir::constant::lit_to_const
source · [−]pub(crate) fn lit_to_const<'tcx>(
tcx: TyCtxt<'tcx>,
lit_input: LitToConstInput<'tcx>
) -> Result<Const<'tcx>, LitToConstError>
pub(crate) fn lit_to_const<'tcx>(
tcx: TyCtxt<'tcx>,
lit_input: LitToConstInput<'tcx>
) -> Result<Const<'tcx>, LitToConstError>