redundant_pub_crate
FP for macro definition
#8732
Labels
C-bug
Category: Clippy is not doing the correct thing
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
Summary
I've written an "internal" macro in my crate, and don't want it to be exported at the root/publicly, so instead of annotating it with
#[macro_export]
, I've addedpub(crate) use bit;
after the definition. Following the recommendation fromclippy::redundant_pub_crate
to remove(crate)
prevents the crate from compiling because the macro:Lint Name
redundant_pub_crate
Reproducer
I tried this code:
I saw this happen:
I expected to not see a lint warning.
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: