diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-05-24 19:50:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-24 19:50:00 -0600 |
| commit | 989c8e86e16ddfa146cd3ba2557d9becb2841a89 (patch) | |
| tree | 30ec217cf06311a8aab26d476f159b1a5ed38e52 | |
| parent | 43d81a8c95d053940df5175a24b8907a07606f79 (diff) | |
| parent | 9ad0dbab5b134592141efdcc93d37ea6a65e425f (diff) | |
| download | rust-989c8e86e16ddfa146cd3ba2557d9becb2841a89.tar.gz rust-989c8e86e16ddfa146cd3ba2557d9becb2841a89.zip | |
Rollup merge of #42120 - euclio:unicode, r=arielb1
remove "much" from unicode diagnostic The English seems slightly awkward to me, and it's unnecessary.
| -rw-r--r-- | src/libsyntax/parse/lexer/unicode_chars.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/unicode-chars.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/parse/lexer/unicode_chars.rs b/src/libsyntax/parse/lexer/unicode_chars.rs index 4df23da3c9c..83a164bdb96 100644 --- a/src/libsyntax/parse/lexer/unicode_chars.rs +++ b/src/libsyntax/parse/lexer/unicode_chars.rs @@ -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); }, diff --git a/src/test/parse-fail/unicode-chars.rs b/src/test/parse-fail/unicode-chars.rs index adfaf62b5d3..1bdeb121a55 100644 --- a/src/test/parse-fail/unicode-chars.rs +++ b/src/test/parse-fail/unicode-chars.rs @@ -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 } |
