pub fn report_object_safety_error<'tcx>(
    tcx: TyCtxt<'tcx>,
    span: Span,
    trait_def_id: DefId,
    violations: &[ObjectSafetyViolation]
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>