Trait rustc_infer::infer::generalize::GeneralizerDelegate
source · pub trait GeneralizerDelegate<'tcx> {
// Required methods
fn param_env(&self) -> ParamEnv<'tcx>;
fn forbid_inference_vars() -> bool;
fn generalize_region(&mut self, universe: UniverseIndex) -> Region<'tcx>;
}
Expand description
Abstracts the handling of region vars between HIR and MIR/NLL typechecking in the generalizer code.