Skip to content

Alter E0412 help message wording #32367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-21221-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ pub mod baz {
struct Foo;
impl T for Foo { }
//~^ ERROR trait `T` is not in scope
//~| HELP you can to import it into scope: `use foo::bar::T;`.
//~| HELP you can import it into scope: `use foo::bar::T;`.
//~| HELP run `rustc --explain E0405` to see a detailed explanation
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-21221-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct Foo;
// are hidden from the view.
impl OuterTrait for Foo {}
//~^ ERROR trait `OuterTrait` is not in scope
//~| HELP you can to import it into scope: `use issue_21221_3::outer::OuterTrait;`.
//~| HELP you can import it into scope: `use issue_21221_3::outer::OuterTrait;`.
//~| HELP run `rustc --explain E0405` to see a detailed explanation
fn main() {
println!("Hello, world!");
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-21221-4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Foo;

impl T for Foo {}
//~^ ERROR trait `T` is not in scope
//~| HELP you can to import it into scope: `use issue_21221_4::T;`.
//~| HELP you can import it into scope: `use issue_21221_4::T;`.
//~| HELP run `rustc --explain E0405` to see a detailed explanation

fn main() {
Expand Down