pub fn scrape_region_constraints<'tcx, Op, R>(
infcx: &InferCtxt<'tcx>,
root_def_id: LocalDefId,
name: &'static str,
span: Span,
op: impl FnOnce(&ObligationCtxt<'_, 'tcx>) -> Result<R, NoSolution>,
) -> Result<(TypeOpOutput<'tcx, Op>, RegionConstraintData<'tcx>), ErrorGuaranteed>Expand description
Executes op and then scrapes out all the “old style” region
constraints that result, creating query-region-constraints.