about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-27 22:13:02 +0200
committerGitHub <noreply@github.com>2025-06-27 22:13:02 +0200
commit190a1a7f747408d1936a81065665c687013f6141 (patch)
tree8323759b9e16757fae6d36e92f0d54db355e121c /compiler/rustc_codegen_llvm/src
parent9d15167921ead28946d8d603470dbe9a57e74eff (diff)
parent57cb419cc5c57afb2456d9e4af0e722a5b9324b9 (diff)
downloadrust-190a1a7f747408d1936a81065665c687013f6141.tar.gz
rust-190a1a7f747408d1936a81065665c687013f6141.zip
Rollup merge of #142730 - bend-n:suggest_declaring_modules_when_file_found_but_module_not_defined, r=petrochenkov
suggest declaring modules when file found but module not defined

suggests declaring modules when a module is found but not defined, i.e
```
├── main.rs: `use thing::thang;`
└── thing.rs: `struct thang`
```
or
```
├── main.rs: `use thing::thang;`
└── thing
    └── mod.rs: `struct thang`
```
which currently is just
```rust
error[E0432]: unresolved import `yeah`
 --> src/main.rs:1:1
  |
1 | use thing::thang;
  |     ^^^^^ use of unresolved module or unlinked crate `thing`
  |
```
but now would have this nice help:
```text
= help: you may have forgotten to declare the module `thing`. use `mod thing` in this file to declare this module.
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions