Do not use unicode character in diagnostic help
This commit is contained in:
parent
b416f1398f
commit
30961c958d
@ -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();
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user