rust/tests
Esteban Küber b61570ac11 Structured suggestion for extern crate foo when foo isn't resolved in import
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;
   |
```
2024-07-29 23:49:51 +00:00
..
assembly Reformat use declarations. 2024-07-29 08:26:52 +10:00
auxiliary
codegen Reformat use declarations. 2024-07-29 08:26:52 +10:00
codegen-units Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
coverage Bless coverage. 2024-07-13 12:02:12 +00:00
coverage-run-rustdoc coverage: Extract hole spans from HIR instead of MIR 2024-07-08 21:22:56 +10:00
crashes Rollup merge of #128173 - compiler-errors:misused-intrinsics, r=oli-obk 2024-07-25 16:48:22 +02:00
debuginfo Add Natvis visualiser and debuginfo tests for f16 2024-07-09 03:47:50 +01:00
incremental Perform instsimplify before inline to eliminate some trivial calls 2024-07-29 18:14:35 +08:00
mir-opt Perform instsimplify before inline to eliminate some trivial calls 2024-07-29 18:14:35 +08:00
pretty Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
run-make Reformat use declarations. 2024-07-29 08:26:52 +10:00
run-pass-valgrind
rustdoc Auto merge of #120812 - compiler-errors:impl-sorting, r=lcnr 2024-07-21 22:43:47 +00:00
rustdoc-gui Rollup merge of #125779 - GuillaumeGomez:copy-code, r=rustdoc-team 2024-07-28 20:07:44 +02:00
rustdoc-js rustdoc-search: use lowercase, non-normalized name for type search 2024-06-09 11:56:52 -07:00
rustdoc-js-std Update tests 2024-06-07 11:55:52 +08:00
rustdoc-json Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustdoc-ui Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
ui Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
ui-fulldeps Auto merge of #126963 - runtimeverification:smir_serde_derive, r=celinval 2024-07-25 20:27:51 +00:00
COMPILER_TESTS.md