error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:5:5
+ --> $DIR/redundant_pub_crate.rs:7: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: consider using `pub` instead of `pub(crate)`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:10:9
+ --> $DIR/redundant_pub_crate.rs:12:9
|
LL | pub(crate) fn g() {} // private due to m1_1 and m1
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) module inside private module
- --> $DIR/redundant_pub_crate.rs:14:5
- |
-LL | / pub(crate) mod m1_2 {
-LL | | // ^ private due to m1
-LL | | fn f() {}
-LL | | pub(crate) fn g() {} // private due to m1_2 and m1
-LL | | pub fn h() {}
-LL | | }
- | |_____^
+ --> $DIR/redundant_pub_crate.rs:16:5
|
- = help: consider using `pub` instead of `pub(crate)`
+LL | pub(crate) mod m1_2 {
+ | ----------^^^^^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:17:9
+ --> $DIR/redundant_pub_crate.rs:19:9
|
LL | pub(crate) fn g() {} // private due to m1_2 and m1
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:23:9
+ --> $DIR/redundant_pub_crate.rs:25:9
|
LL | pub(crate) fn g() {} // private due to m1
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:30:5
+ --> $DIR/redundant_pub_crate.rs:32:5
|
LL | pub(crate) fn g() {} // already crate visible due to m2
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:35:9
+ --> $DIR/redundant_pub_crate.rs:37:9
|
LL | pub(crate) fn g() {} // private due to m2_1
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) module inside private module
- --> $DIR/redundant_pub_crate.rs:39:5
+ --> $DIR/redundant_pub_crate.rs:41:5
|
-LL | / pub(crate) mod m2_2 {
-LL | | // ^ already crate visible due to m2
-LL | | fn f() {}
-LL | | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
-LL | | pub fn h() {}
-LL | | }
- | |_____^
- |
- = help: consider using `pub` instead of `pub(crate)`
+LL | pub(crate) mod m2_2 {
+ | ----------^^^^^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:42:9
+ --> $DIR/redundant_pub_crate.rs:44:9
|
LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:48:9
+ --> $DIR/redundant_pub_crate.rs:50:9
|
LL | pub(crate) fn g() {} // already crate visible due to m2
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:60:9
+ --> $DIR/redundant_pub_crate.rs:62:9
|
LL | pub(crate) fn g() {} // private due to m3_1
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:67:9
+ --> $DIR/redundant_pub_crate.rs:69:9
|
LL | pub(crate) fn g() {} // already crate visible due to m3_2
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:80:5
+ --> $DIR/redundant_pub_crate.rs:82:5
|
LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:85:9
+ --> $DIR/redundant_pub_crate.rs:87:9
|
LL | pub(crate) fn g() {} // private due to m4_1
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) module inside private module
- --> $DIR/redundant_pub_crate.rs:89:5
- |
-LL | / pub(crate) mod m4_2 {
-LL | | // ^ private: not re-exported by `pub use m4::*`
-LL | | fn f() {}
-LL | | pub(crate) fn g() {} // private due to m4_2
-LL | | pub fn h() {}
-LL | | }
- | |_____^
+ --> $DIR/redundant_pub_crate.rs:91:5
|
- = help: consider using `pub` instead of `pub(crate)`
+LL | pub(crate) mod m4_2 {
+ | ----------^^^^^^^^^
+ | |
+ | help: consider using: `pub`
error: pub(crate) function inside private module
- --> $DIR/redundant_pub_crate.rs:92:9
+ --> $DIR/redundant_pub_crate.rs:94:9
|
LL | pub(crate) fn g() {} // private due to m4_2
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: consider using `pub` instead of `pub(crate)`
+ | ----------^^^^^
+ | |
+ | help: consider using: `pub`
error: aborting due to 16 previous errors