2020-03-15 17:38:20 +00:00
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:6:5
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-pub-crate` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_pub_crate)]`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:11:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1_1 and m1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) module inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:15:5
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
2020-03-20 22:49:15 +00:00
|
|
|
LL | pub(crate) mod m1_2 {
|
|
|
|
| ----------^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:18:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1_2 and m1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:24:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:31:5
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m2
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:36:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m2_1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) module inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:40:5
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
2020-03-20 22:49:15 +00:00
|
|
|
LL | pub(crate) mod m2_2 {
|
|
|
|
| ----------^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:43:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:49:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m2
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:61:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m3_1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:68:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // already crate visible due to m3_2
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:81:5
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:86:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m4_1
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) module inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:90:5
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
2020-03-20 22:49:15 +00:00
|
|
|
LL | pub(crate) mod m4_2 {
|
|
|
|
| ----------^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: pub(crate) function inside private module
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_pub_crate.rs:93:9
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn g() {} // private due to m4_2
|
2020-03-20 22:49:15 +00:00
|
|
|
| ----------^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider using: `pub`
|
2020-03-15 17:38:20 +00:00
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
|
|
|
|