rustc_ty_utils::consts

Function thir_abstract_const

source
fn thir_abstract_const<'tcx>(
    tcx: TyCtxt<'tcx>,
    def: LocalDefId,
) -> Result<Option<EarlyBinder<'tcx, Const<'tcx>>>, ErrorGuaranteed>
Expand description

Builds an abstract const, do not use this directly, but use AbstractConst::new instead.