rust/tests/ui/redundant_pub_crate.stderr

134 lines
3.9 KiB
Plaintext
Raw Normal View History

error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:6:5
|
LL | pub(crate) fn g() {} // private due to m1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| 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
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:11:9
|
LL | pub(crate) fn g() {} // private due to m1_1 and m1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) module inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:15:5
|
2020-03-20 17:49:15 -05:00
LL | pub(crate) mod m1_2 {
| ----------^^^^^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:18:9
|
LL | pub(crate) fn g() {} // private due to m1_2 and m1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:24:9
|
LL | pub(crate) fn g() {} // private due to m1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:31:5
|
LL | pub(crate) fn g() {} // already crate visible due to m2
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:36:9
|
LL | pub(crate) fn g() {} // private due to m2_1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) module inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:40:5
|
2020-03-20 17:49:15 -05:00
LL | pub(crate) mod m2_2 {
| ----------^^^^^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:43:9
|
LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:49:9
|
LL | pub(crate) fn g() {} // already crate visible due to m2
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:61:9
|
LL | pub(crate) fn g() {} // private due to m3_1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:68:9
|
LL | pub(crate) fn g() {} // already crate visible due to m3_2
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:81:5
|
LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:86:9
|
LL | pub(crate) fn g() {} // private due to m4_1
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: pub(crate) module inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:90:5
|
2020-03-20 17:49:15 -05:00
LL | pub(crate) mod m4_2 {
| ----------^^^^^^^^^
| |
| help: consider using: `pub`
error: pub(crate) function inside private module
2024-02-17 06:16:29 -06:00
--> tests/ui/redundant_pub_crate.rs:93:9
|
LL | pub(crate) fn g() {} // private due to m4_2
2020-03-20 17:49:15 -05:00
| ----------^^^^^
| |
| help: consider using: `pub`
error: aborting due to 16 previous errors