pub fn render_errors<T>( errs: Vec<SpannedItem<T>>, sources: &IndexMap<SourceId, (&'static str, &'static str)>, )where T: Diagnostic + Send + Sync + 'static,