Skip to main content

consider_implied_bounds_hack_for_ty

Function consider_implied_bounds_hack_for_ty 

Source
pub fn consider_implied_bounds_hack_for_ty<'tcx>(
    ocx: &ObligationCtxt<'_, 'tcx>,
    ty: Ty<'tcx>,
    region_constraints: impl FnOnce() -> Vec<TypeOutlivesConstraint<'tcx>>,
) -> Vec<OutlivesBound<'tcx>>
Expand description

If we’re at a callsite which should apply the bevy implied bounds hack and -Zno-implied-bounds-compat has not been set, then use the registered outlives obligations as implied bounds if we detect bevy_ecs::*::ParamSet in the arg.

cc #119956