mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +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; | ``` |
||
---|---|---|
.. | ||
auxiliary | ||
unresolved-asterisk-imports.rs | ||
unresolved-asterisk-imports.stderr | ||
unresolved-candidates.rs | ||
unresolved-candidates.stderr | ||
unresolved-extern-mod-suggestion.rs | ||
unresolved-extern-mod-suggestion.stderr | ||
unresolved-import-avoid-suggesting-global-path.rs | ||
unresolved-import-avoid-suggesting-global-path.stderr | ||
unresolved-import-recovery.rs | ||
unresolved-import-recovery.stderr | ||
unresolved-import-suggest-disambiguated-crate-name.fixed | ||
unresolved-import-suggest-disambiguated-crate-name.rs | ||
unresolved-import-suggest-disambiguated-crate-name.stderr | ||
unresolved-import.rs | ||
unresolved-import.stderr |