rust/tests/ui/tool-attributes
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
..
auxiliary
diagnostic_item.rs
diagnostic_item.stderr
diagnostic_item2.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
diagnostic_item3.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
duplicate-diagnostic.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
duplicate-diagnostic.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
invalid-tool.rs Fix diagnostic and add a test for it 2024-07-10 18:56:06 -04:00
invalid-tool.stderr Fix diagnostic and add a test for it 2024-07-10 18:56:06 -04:00
tool-attributes-misplaced-1.rs
tool-attributes-misplaced-1.stderr
tool-attributes-misplaced-2.rs
tool-attributes-misplaced-2.stderr
tool-attributes-shadowing.rs
tool-attributes-shadowing.stderr
tool_lints-fail.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
tool_lints-fail.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
tool_lints-rpass.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
tool_lints.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
tool_lints.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
tool_lints_2018_preview.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
unknown-lint-tool-name.rs Always run tail_expr_drop_order lint on promoted MIR 2024-12-23 20:25:41 +00:00
unknown-lint-tool-name.stderr Always run tail_expr_drop_order lint on promoted MIR 2024-12-23 20:25:41 +00:00
unknown-tool-name.rs Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
unknown-tool-name.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00