fn object_safety_violations_for_trait(
    tcx: TyCtxt<'_>,
    trait_def_id: DefId
) -> Vec<ObjectSafetyViolation>