rust/compiler/rustc_resolve/src
Esteban Küber dd52bfc76e Reword "crate not found" resolve message
```
error[E0432]: unresolved import `some_novel_crate`
 --> file.rs:1:5
  |
1 | use some_novel_crate::Type;
  |     ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `some_novel_crate`
```

On resolve errors where there might be a missing crate, mention `cargo add foo`:

```
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nope`
  --> $DIR/conflicting-impl-with-err.rs:4:11
   |
LL | impl From<nope::Thing> for Error {
   |           ^^^^ use of unresolved module or unlinked crate `nope`
   |
   = help: if you wanted to use a crate named `nope`, use `cargo add nope` to add it to your `Cargo.toml`
```
2025-01-24 01:19:50 +00:00
..
late Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
build_reduced_graph.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
check_unused.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
def_collector.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
diagnostics.rs Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
effective_visibilities.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
ident.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
imports.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
late.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
lib.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
macros.rs Auto merge of #135754 - jieyouxu:rollup-j4q1hpr, r=jieyouxu 2025-01-20 10:35:43 +00:00
rustdoc.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00