mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
133 lines
3.8 KiB
Text
133 lines
3.8 KiB
Text
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:6:5
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
|
= note: `-D clippy::redundant-pub-crate` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_pub_crate)]`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:11:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1_1 and m1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) module inside private module
|
|
--> $DIR/redundant_pub_crate.rs:15:5
|
|
|
|
|
LL | pub(crate) mod m1_2 {
|
|
| ----------^^^^^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:18:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1_2 and m1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:24:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:31:5
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m2
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:36:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m2_1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) module inside private module
|
|
--> $DIR/redundant_pub_crate.rs:40:5
|
|
|
|
|
LL | pub(crate) mod m2_2 {
|
|
| ----------^^^^^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:43:9
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:49:9
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m2
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:61:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m3_1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:68:9
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m3_2
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:81:5
|
|
|
|
|
LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:86:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m4_1
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) module inside private module
|
|
--> $DIR/redundant_pub_crate.rs:90:5
|
|
|
|
|
LL | pub(crate) mod m4_2 {
|
|
| ----------^^^^^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: pub(crate) function inside private module
|
|
--> $DIR/redundant_pub_crate.rs:93:9
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m4_2
|
|
| ----------^^^^^
|
|
| |
|
|
| help: consider using: `pub`
|
|
|
|
error: aborting due to 16 previous errors
|
|
|