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