single_component_path_imports
: False positive for exporting macros within crate
#7106
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Lint name:
single_component_path_imports
I tried this code:
I expected to see this happen: no lint warnings
Instead, this happened:
Note that I cannot use
#[macro_use]
in this scenario becauseb
is a sibling module ofa
, not a parent, so you can't declare#[macro_use] mod a;
inb
.Meta
cargo clippy -V
: clippy 0.1.51 (2fd73fab 2021-03-23)rustc -Vv
:The text was updated successfully, but these errors were encountered: