redundant_pub_crate conflicts with pub use mod::* #13676
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
Summary
Given this module:
and the source file
foo.rs
:After
redundant_pub_crate
is applied,pub(crate) fn bar
becomespub fn bar()
, and because of thepub use foo::*
, it becomes part of the public API, whereas previously it was crate private.Lint Name
redundant_pub_crate
Reproducer
No response
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: