pub fn task_execution_failed( e: Error, name: &str, id: &str, span: Span, ) -> Diagnostic
Creates a “task execution failed” diagnostic.