]> git.lizzy.rs Git - rust.git/commitdiff
Alter E0412 help message wording
authortiehuis <marctiehuis@gmail.com>
Sun, 20 Mar 2016 03:02:31 +0000 (16:02 +1300)
committertiehuis <marctiehuis@gmail.com>
Sun, 20 Mar 2016 03:02:31 +0000 (16:02 +1300)
The initial wording does not make sense due to an extra 'to'.

There are two potential candidates we can change this to:
 - 'you can import it into scope'
 - 'to import it into scope'

In keeping the changes minimal, we choose the first, as this is more in line with the grammar of the extended candidates help message.

src/librustc_resolve/lib.rs

index 6313d7b70366a9c9ee516fa7023babea92c81a2c..9d09e8d1eb1a17ce77610c55acfbdbf5053b66dd 100644 (file)
@@ -3625,7 +3625,7 @@ fn show_candidates(session: &mut DiagnosticBuilder,
             if paths.len() == 1 {
                 session.fileline_help(
                     span,
-                    &format!("you can to import it into scope: `use {};`.",
+                    &format!("you can import it into scope: `use {};`.",
                         &path_strings[0]),
                 );
             } else {