Skip to content

Commit

Permalink
Rollup merge of rust-lang#42120 - euclio:unicode, r=arielb1
Browse files Browse the repository at this point in the history
remove "much" from unicode diagnostic

The English seems slightly awkward to me, and it's unnecessary.
  • Loading branch information
Mark-Simulacrum committed May 24, 2017
2 parents eaaee46 + 9ad0dba commit dfb7a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/lexer/unicode_chars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down
3 changes: 1 addition & 2 deletions src/test/parse-fail/unicode-chars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit dfb7a00

Please sign in to comment.