Open
Description
Code
mod foo {
pub use bar::*;
mod bar {
pub(crate) fn baz() {}
}
}
fn main() {
foo::baz();
}
Current output
warning: glob import doesn't reexport anything because no candidate is public enough
--> src/main.rs:2:13
|
2 | pub use bar::*;
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Desired output
No response
Rationale and extra context
An unused import lint feels wrong to be because i am using baz
.
Other cases
No response
Rust Version
rustc 1.75.0 (82e1608df 2023-12-21)
binary: rustc
commit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112
commit-date: 2023-12-21
host: aarch64-apple-darwin
release: 1.75.0
LLVM version: 17.0.6
Anything else?
No response