]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #42120 - euclio:unicode, r=arielb1
authorMark Simulacrum <mark.simulacrum@gmail.com>
Thu, 25 May 2017 01:50:00 +0000 (19:50 -0600)
committerGitHub <noreply@github.com>
Thu, 25 May 2017 01:50:00 +0000 (19:50 -0600)
remove "much" from unicode diagnostic

The English seems slightly awkward to me, and it's unnecessary.

src/libsyntax/parse/lexer/unicode_chars.rs
src/test/parse-fail/unicode-chars.rs

index 4df23da3c9ce3464bf1cb760352e5bd7df68b144..83a164bdb9693c66b67cd46300331d0839f703a4 100644 (file)
@@ -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);
             },
index adfaf62b5d3cc04aa203f3ee2810725f63d45450..1bdeb121a55d5ed555246cdf69d2d4a1448dc694 100644 (file)
@@ -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
 }