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

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