pub(crate) fn render_diagnostic( source_map: &SourceMap, entry_path: &Path, entry_source: &str, diagnostic: &Diagnostic, ) -> String