diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-11-19 17:46:44 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-12-04 22:26:08 +0000 |
| commit | beaf31581a1ade80bbd934e87ae3fa9b2b4c88a4 (patch) | |
| tree | 873154c68fe4c833f5970bfdcb8a831f669c34d0 /compiler/rustc_codegen_gcc/src | |
| parent | 0e2dac8375950a12812ec65868e42b43ed214ef9 (diff) | |
| download | rust-beaf31581a1ade80bbd934e87ae3fa9b2b4c88a4.tar.gz rust-beaf31581a1ade80bbd934e87ae3fa9b2b4c88a4.zip | |
Structured `use` suggestion on privacy error
When encoutering a privacy error on an item through a re-export that is accessible in an alternative path, provide a structured suggestion with that path. ``` error[E0603]: module import `mem` is private --> $DIR/private-std-reexport-suggest-public.rs:4:14 | LL | use foo::mem; | ^^^ private module import | note: the module import `mem` is defined here... --> $DIR/private-std-reexport-suggest-public.rs:8:9 | LL | use std::mem; | ^^^^^^^^ note: ...and refers to the module `mem` which is defined here --> $SRC_DIR/std/src/lib.rs:LL:COL | = note: you could import this help: import `mem` through the re-export | LL | use std::mem; | ~~~~~~~~ ``` Fix #42909.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions
