pub fn hir_ty_lowering_dyn_compatibility_violations(
tcx: TyCtxt<'_>,
trait_def_id: DefId,
) -> Vec<DynCompatibilityViolation>
Expand description
Returns the dyn-compatibility violations that affect HIR ty lowering.
Currently that is Self
in supertraits. This is needed
because dyn_compatibility_violations
can’t be used during
type collection.