Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`". ``` error[E0433]: cannot find `nonexistent` in `existent` --> $DIR/custom_attr_multisegment_error.rs:5:13 | LL | #[existent::nonexistent] | ^^^^^^^^^^^ could not find `nonexistent` in `existent` ```
19 lines
764 B
Text
19 lines
764 B
Text
error[E0433]: cannot find module or crate `foo` in this scope
|
|
--> $DIR/issue-72911.rs:11:33
|
|
|
|
|
LL | fn gather_from_file(dir_entry: &foo::MissingItem) -> impl Iterator<Item = Lint> {
|
|
| ^^^ use of unresolved module or unlinked crate `foo`
|
|
|
|
|
= help: you might be missing a crate named `foo`
|
|
|
|
error[E0433]: cannot find module or crate `foo` in this scope
|
|
--> $DIR/issue-72911.rs:16:41
|
|
|
|
|
LL | fn lint_files() -> impl Iterator<Item = foo::MissingItem> {
|
|
| ^^^ use of unresolved module or unlinked crate `foo`
|
|
|
|
|
= help: you might be missing a crate named `foo`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|