pub fn utf8_error<G>( sm: &SourceMap, path: &str, sp: Option<Span>, err: &mut Diag<'_, G>, utf8err: Utf8Error, contents: &[u8], )