11error: pub(crate) function inside private module
2- --> tests/ui/redundant_pub_crate.rs:6 :5
2+ --> tests/ui/redundant_pub_crate.rs:7 :5
33 |
44LL | pub(crate) fn g() {} // private due to m1
55 | ----------^^^^^
@@ -10,119 +10,119 @@ LL | pub(crate) fn g() {} // private due to m1
1010 = help: to override `-D warnings` add `#[allow(clippy::redundant_pub_crate)]`
1111
1212error: pub(crate) function inside private module
13- --> tests/ui/redundant_pub_crate.rs:11 :9
13+ --> tests/ui/redundant_pub_crate.rs:12 :9
1414 |
1515LL | pub(crate) fn g() {} // private due to m1_1 and m1
1616 | ----------^^^^^
1717 | |
1818 | help: consider using: `pub`
1919
2020error: pub(crate) module inside private module
21- --> tests/ui/redundant_pub_crate.rs:15 :5
21+ --> tests/ui/redundant_pub_crate.rs:16 :5
2222 |
2323LL | pub(crate) mod m1_2 {
2424 | ----------^^^^^^^^^
2525 | |
2626 | help: consider using: `pub`
2727
2828error: pub(crate) function inside private module
29- --> tests/ui/redundant_pub_crate.rs:18 :9
29+ --> tests/ui/redundant_pub_crate.rs:19 :9
3030 |
3131LL | pub(crate) fn g() {} // private due to m1_2 and m1
3232 | ----------^^^^^
3333 | |
3434 | help: consider using: `pub`
3535
3636error: pub(crate) function inside private module
37- --> tests/ui/redundant_pub_crate.rs:24 :9
37+ --> tests/ui/redundant_pub_crate.rs:25 :9
3838 |
3939LL | pub(crate) fn g() {} // private due to m1
4040 | ----------^^^^^
4141 | |
4242 | help: consider using: `pub`
4343
4444error: pub(crate) function inside private module
45- --> tests/ui/redundant_pub_crate.rs:31 :5
45+ --> tests/ui/redundant_pub_crate.rs:32 :5
4646 |
4747LL | pub(crate) fn g() {} // already crate visible due to m2
4848 | ----------^^^^^
4949 | |
5050 | help: consider using: `pub`
5151
5252error: pub(crate) function inside private module
53- --> tests/ui/redundant_pub_crate.rs:36 :9
53+ --> tests/ui/redundant_pub_crate.rs:37 :9
5454 |
5555LL | pub(crate) fn g() {} // private due to m2_1
5656 | ----------^^^^^
5757 | |
5858 | help: consider using: `pub`
5959
6060error: pub(crate) module inside private module
61- --> tests/ui/redundant_pub_crate.rs:40 :5
61+ --> tests/ui/redundant_pub_crate.rs:41 :5
6262 |
6363LL | pub(crate) mod m2_2 {
6464 | ----------^^^^^^^^^
6565 | |
6666 | help: consider using: `pub`
6767
6868error: pub(crate) function inside private module
69- --> tests/ui/redundant_pub_crate.rs:43 :9
69+ --> tests/ui/redundant_pub_crate.rs:44 :9
7070 |
7171LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
7272 | ----------^^^^^
7373 | |
7474 | help: consider using: `pub`
7575
7676error: pub(crate) function inside private module
77- --> tests/ui/redundant_pub_crate.rs:49 :9
77+ --> tests/ui/redundant_pub_crate.rs:50 :9
7878 |
7979LL | pub(crate) fn g() {} // already crate visible due to m2
8080 | ----------^^^^^
8181 | |
8282 | help: consider using: `pub`
8383
8484error: pub(crate) function inside private module
85- --> tests/ui/redundant_pub_crate.rs:61 :9
85+ --> tests/ui/redundant_pub_crate.rs:62 :9
8686 |
8787LL | pub(crate) fn g() {} // private due to m3_1
8888 | ----------^^^^^
8989 | |
9090 | help: consider using: `pub`
9191
9292error: pub(crate) function inside private module
93- --> tests/ui/redundant_pub_crate.rs:68 :9
93+ --> tests/ui/redundant_pub_crate.rs:69 :9
9494 |
9595LL | pub(crate) fn g() {} // already crate visible due to m3_2
9696 | ----------^^^^^
9797 | |
9898 | help: consider using: `pub`
9999
100100error: pub(crate) function inside private module
101- --> tests/ui/redundant_pub_crate.rs:81 :5
101+ --> tests/ui/redundant_pub_crate.rs:82 :5
102102 |
103103LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
104104 | ----------^^^^^
105105 | |
106106 | help: consider using: `pub`
107107
108108error: pub(crate) function inside private module
109- --> tests/ui/redundant_pub_crate.rs:86 :9
109+ --> tests/ui/redundant_pub_crate.rs:87 :9
110110 |
111111LL | pub(crate) fn g() {} // private due to m4_1
112112 | ----------^^^^^
113113 | |
114114 | help: consider using: `pub`
115115
116116error: pub(crate) module inside private module
117- --> tests/ui/redundant_pub_crate.rs:90 :5
117+ --> tests/ui/redundant_pub_crate.rs:91 :5
118118 |
119119LL | pub(crate) mod m4_2 {
120120 | ----------^^^^^^^^^
121121 | |
122122 | help: consider using: `pub`
123123
124124error: pub(crate) function inside private module
125- --> tests/ui/redundant_pub_crate.rs:93 :9
125+ --> tests/ui/redundant_pub_crate.rs:94 :9
126126 |
127127LL | pub(crate) fn g() {} // private due to m4_2
128128 | ----------^^^^^
0 commit comments