diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-07-24 19:31:02 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-07-29 23:49:51 +0000 |
| commit | b61570ac11650579252a9350505a7064e85b48c5 (patch) | |
| tree | 33c2934cc6129783499a39d8435fafee11d0e0ba /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 4db3d12e6f395babed53dee1d209a5c8699a5ae6 (diff) | |
| download | rust-b61570ac11650579252a9350505a7064e85b48c5.tar.gz rust-b61570ac11650579252a9350505a7064e85b48c5.zip | |
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; | ```
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
