Skip to content

Commit 1138866

Browse files
committed
Alter E0412 help message wording
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.
1 parent 02310fd commit 1138866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3625,7 +3625,7 @@ fn show_candidates(session: &mut DiagnosticBuilder,
36253625
if paths.len() == 1 {
36263626
session.fileline_help(
36273627
span,
3628-
&format!("you can to import it into scope: `use {};`.",
3628+
&format!("you can import it into scope: `use {};`.",
36293629
&path_strings[0]),
36303630
);
36313631
} else {

0 commit comments

Comments
 (0)