1
Fork 0

Migrate some rustc_builtin_macros to SessionDiagnostic

This commit is contained in:
He1pa 2023-06-21 19:01:53 +08:00
parent ed1ce580ec
commit 8af8a95a64
11 changed files with 134 additions and 32 deletions

View file

@ -21,7 +21,7 @@ fn invalid_type_err(
Ok(ast::LitKind::CStr(_, _)) => {
// FIXME(c_str_literals): should concatenation of C string literals
// include the null bytes in the end?
cx.span_err(span, "cannot concatenate C string literals");
cx.emit_err(errors::ConcatCStrLit { span: span });
}
Ok(ast::LitKind::Char(_)) => {
let sugg =