mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
b61570ac11
When encountering a name in an import that could have come from a crate that wasn't imported, use a structured suggestion to suggest `extern crate foo;` pointing at the right place in the crate. When encountering `_` in an import, do not suggest `extern crate _;`. ``` error[E0432]: unresolved import `spam` --> $DIR/import-from-missing-star-3.rs:2:9 | LL | use spam::*; | ^^^^ maybe a missing crate `spam`? | help: consider importing the `spam` crate | LL + extern crate spam; | ```
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
error[E0433]: failed to resolve: you might be missing crate `clippy`
|
|
--> $DIR/tool-mod-child.rs:2:5
|
|
|
|
|
LL | use clippy::a::b;
|
|
| ^^^^^^ you might be missing crate `clippy`
|
|
|
|
|
help: consider importing the `clippy` crate
|
|
|
|
|
LL + extern crate clippy;
|
|
|
|
|
|
|
error[E0432]: unresolved import `clippy`
|
|
--> $DIR/tool-mod-child.rs:1:5
|
|
|
|
|
LL | use clippy::a;
|
|
| ^^^^^^ you might be missing crate `clippy`
|
|
|
|
|
help: consider importing the `clippy` crate
|
|
|
|
|
LL + extern crate clippy;
|
|
|
|
|
|
|
error[E0433]: failed to resolve: you might be missing crate `rustdoc`
|
|
--> $DIR/tool-mod-child.rs:5:5
|
|
|
|
|
LL | use rustdoc::a::b;
|
|
| ^^^^^^^ you might be missing crate `rustdoc`
|
|
|
|
|
help: consider importing the `rustdoc` crate
|
|
|
|
|
LL + extern crate rustdoc;
|
|
|
|
|
|
|
error[E0432]: unresolved import `rustdoc`
|
|
--> $DIR/tool-mod-child.rs:4:5
|
|
|
|
|
LL | use rustdoc::a;
|
|
| ^^^^^^^ you might be missing crate `rustdoc`
|
|
|
|
|
help: consider importing the `rustdoc` crate
|
|
|
|
|
LL + extern crate rustdoc;
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
Some errors have detailed explanations: E0432, E0433.
|
|
For more information about an error, try `rustc --explain E0432`.
|