fn emit_diagnostics( adapter: &str, unit: &str, diagnostics: &[ExternalDiagnostic], deny: DenyLevel, ) -> Result<()>