- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
Description
In an example like this one (playground):
#![warn(rust_2018_idioms)]
mod bar {
    pub fn x() { }
}
mod baz {
    use bar::x;
}
fn main() {
}we get the following output in Rust 2018:
error[E0432]: unresolved import `bar`
 --> src/main.rs:8:9
  |
8 |     use bar::x;
  |         ^^^ Did you mean `crate::bar`?
It'd be nice to have an additional note:
error[E0432]: unresolved import `bar`
 --> src/main.rs:8:9
  |
8 |     use bar::x;
  |         ^^^ Did you mean `crate::bar`?
  |
  | = note: `use` statements changed in Rust 2018; read more at XXX
where XXX is probably https://rust-lang-nursery.github.io/edition-guide/ ?
estebank
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.