pub trait InferCtxtExt<'a, 'tcx> {
// Required methods
fn implied_bounds_tys_compat(
&'a self,
param_env: ParamEnv<'tcx>,
body_id: LocalDefId,
tys: &'a FxIndexSet<Ty<'tcx>>,
compat: bool
) -> BoundsCompat<'a, 'tcx>;
fn implied_bounds_tys(
&'a self,
param_env: ParamEnv<'tcx>,
body_id: LocalDefId,
tys: &'a FxIndexSet<Ty<'tcx>>
) -> Bounds<'a, 'tcx>;
}
Required Methods§
sourcefn implied_bounds_tys_compat(
&'a self,
param_env: ParamEnv<'tcx>,
body_id: LocalDefId,
tys: &'a FxIndexSet<Ty<'tcx>>,
compat: bool
) -> BoundsCompat<'a, 'tcx>
fn implied_bounds_tys_compat( &'a self, param_env: ParamEnv<'tcx>, body_id: LocalDefId, tys: &'a FxIndexSet<Ty<'tcx>>, compat: bool ) -> BoundsCompat<'a, 'tcx>
Do NOT call this directly.
sourcefn implied_bounds_tys(
&'a self,
param_env: ParamEnv<'tcx>,
body_id: LocalDefId,
tys: &'a FxIndexSet<Ty<'tcx>>
) -> Bounds<'a, 'tcx>
fn implied_bounds_tys( &'a self, param_env: ParamEnv<'tcx>, body_id: LocalDefId, tys: &'a FxIndexSet<Ty<'tcx>> ) -> Bounds<'a, 'tcx>
If -Z no-implied-bounds-compat
is set, calls implied_bounds_tys_compat
with compat
set to true
, otherwise false
.