Do not use unicode character in diagnostic help

This commit is contained in:
Esteban Küber 2018-12-31 09:44:54 -08:00
parent b416f1398f
commit 30961c958d
2 changed files with 4 additions and 4 deletions

View File

@ -971,7 +971,7 @@ impl<'a> StringReader<'a> {
} else {
err.span_help(
span,
"format of unicode escape sequences is `\\u{}`",
"format of unicode escape sequences is `\\u{...}`",
);
}
err.emit();

View File

@ -16,7 +16,7 @@ error: incorrect unicode escape sequence
LL | let _ = b'/u';
| ^^
|
help: format of unicode escape sequences is `/u{}`
help: format of unicode escape sequences is `/u{...}`
--> $DIR/issue-23620-invalid-escapes.rs:10:15
|
LL | let _ = b'/u';
@ -82,7 +82,7 @@ error: incorrect unicode escape sequence
LL | let _ = b"/u{a4a4} /xf /u";
| ^^
|
help: format of unicode escape sequences is `/u{}`
help: format of unicode escape sequences is `/u{...}`
--> $DIR/issue-23620-invalid-escapes.rs:28:28
|
LL | let _ = b"/u{a4a4} /xf /u";
@ -112,7 +112,7 @@ error: incorrect unicode escape sequence
LL | let _ = "/xf /u";
| ^^
|
help: format of unicode escape sequences is `/u{}`
help: format of unicode escape sequences is `/u{...}`
--> $DIR/issue-23620-invalid-escapes.rs:34:18
|
LL | let _ = "/xf /u";