Trait rustc_trait_selection::solve::infcx_ext::InferCtxtExt
source · pub(super) trait InferCtxtExt<'tcx> {
fn next_ty_infer(&self) -> Ty<'tcx>;
fn next_const_infer(&self, ty: Ty<'tcx>) -> Const<'tcx>;
fn eq<T: ToTrace<'tcx>>(
&self,
param_env: ParamEnv<'tcx>,
lhs: T,
rhs: T
) -> Result<Vec<Goal<'tcx, Predicate<'tcx>>>, NoSolution>;
fn instantiate_bound_vars_with_infer<T: TypeFoldable<'tcx> + Copy>(
&self,
value: Binder<'tcx, T>
) -> T;
}Expand description
Methods used inside of the canonical queries of the solver.
Most notably these do not care about diagnostics information. If you find this while looking for methods to use outside of the solver, you may look at the implementation of these method for help.