Rollup merge of #42120 - euclio:unicode, r=arielb1
remove "much" from unicode diagnostic The English seems slightly awkward to me, and it's unnecessary.
This commit is contained in:
commit
989c8e86e1
2 changed files with 2 additions and 3 deletions
|
|
@ -238,7 +238,7 @@ pub fn check_for_substitution<'a>(reader: &StringReader<'a>,
|
|||
match ASCII_ARRAY.iter().find(|&&(c, _)| c == ascii_char) {
|
||||
Some(&(ascii_char, ascii_name)) => {
|
||||
let msg =
|
||||
format!("unicode character '{}' ({}) looks much like '{}' ({}), but it's not",
|
||||
format!("unicode character '{}' ({}) looks like '{}' ({}), but it's not",
|
||||
ch, u_name, ascii_char, ascii_name);
|
||||
err.span_help(span, &msg);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -9,10 +9,9 @@
|
|||
// except according to those terms.
|
||||
|
||||
// compile-flags: -Z parse-only
|
||||
// ignore-tidy-linelength
|
||||
|
||||
fn main() {
|
||||
let y = 0;
|
||||
//~^ ERROR unknown start of token: \u{37e}
|
||||
//~^^ HELP unicode character ';' (Greek Question Mark) looks much like ';' (Semicolon), but it's not
|
||||
//~^^ HELP unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it's not
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue