@@ -5,12 +5,15 @@ LL | pub(crate) fn g() {} // private due to m1
55 | ^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::redundant-pub-crate` implied by `-D warnings`
8+ = help: consider using `pub` instead of `pub(crate)`
89
910error: pub(crate) function inside private module
1011 --> $DIR/redundant_pub_crate.rs:10:9
1112 |
1213LL | pub(crate) fn g() {} // private due to m1_1 and m1
1314 | ^^^^^^^^^^^^^^^^^^^^
15+ |
16+ = help: consider using `pub` instead of `pub(crate)`
1417
1518error: pub(crate) module inside private module
1619 --> $DIR/redundant_pub_crate.rs:14:5
@@ -22,30 +25,40 @@ LL | | pub(crate) fn g() {} // private due to m1_2 and m1
2225LL | | pub fn h() {}
2326LL | | }
2427 | |_____^
28+ |
29+ = help: consider using `pub` instead of `pub(crate)`
2530
2631error: pub(crate) function inside private module
2732 --> $DIR/redundant_pub_crate.rs:17:9
2833 |
2934LL | pub(crate) fn g() {} // private due to m1_2 and m1
3035 | ^^^^^^^^^^^^^^^^^^^^
36+ |
37+ = help: consider using `pub` instead of `pub(crate)`
3138
3239error: pub(crate) function inside private module
3340 --> $DIR/redundant_pub_crate.rs:23:9
3441 |
3542LL | pub(crate) fn g() {} // private due to m1
3643 | ^^^^^^^^^^^^^^^^^^^^
44+ |
45+ = help: consider using `pub` instead of `pub(crate)`
3746
3847error: pub(crate) function inside private module
3948 --> $DIR/redundant_pub_crate.rs:30:5
4049 |
4150LL | pub(crate) fn g() {} // already crate visible due to m2
4251 | ^^^^^^^^^^^^^^^^^^^^
52+ |
53+ = help: consider using `pub` instead of `pub(crate)`
4354
4455error: pub(crate) function inside private module
4556 --> $DIR/redundant_pub_crate.rs:35:9
4657 |
4758LL | pub(crate) fn g() {} // private due to m2_1
4859 | ^^^^^^^^^^^^^^^^^^^^
60+ |
61+ = help: consider using `pub` instead of `pub(crate)`
4962
5063error: pub(crate) module inside private module
5164 --> $DIR/redundant_pub_crate.rs:39:5
@@ -57,42 +70,56 @@ LL | | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
5770LL | | pub fn h() {}
5871LL | | }
5972 | |_____^
73+ |
74+ = help: consider using `pub` instead of `pub(crate)`
6075
6176error: pub(crate) function inside private module
6277 --> $DIR/redundant_pub_crate.rs:42:9
6378 |
6479LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
6580 | ^^^^^^^^^^^^^^^^^^^^
81+ |
82+ = help: consider using `pub` instead of `pub(crate)`
6683
6784error: pub(crate) function inside private module
6885 --> $DIR/redundant_pub_crate.rs:48:9
6986 |
7087LL | pub(crate) fn g() {} // already crate visible due to m2
7188 | ^^^^^^^^^^^^^^^^^^^^
89+ |
90+ = help: consider using `pub` instead of `pub(crate)`
7291
7392error: pub(crate) function inside private module
7493 --> $DIR/redundant_pub_crate.rs:60:9
7594 |
7695LL | pub(crate) fn g() {} // private due to m3_1
7796 | ^^^^^^^^^^^^^^^^^^^^
97+ |
98+ = help: consider using `pub` instead of `pub(crate)`
7899
79100error: pub(crate) function inside private module
80101 --> $DIR/redundant_pub_crate.rs:67:9
81102 |
82103LL | pub(crate) fn g() {} // already crate visible due to m3_2
83104 | ^^^^^^^^^^^^^^^^^^^^
105+ |
106+ = help: consider using `pub` instead of `pub(crate)`
84107
85108error: pub(crate) function inside private module
86109 --> $DIR/redundant_pub_crate.rs:80:5
87110 |
88111LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
89112 | ^^^^^^^^^^^^^^^^^^^^
113+ |
114+ = help: consider using `pub` instead of `pub(crate)`
90115
91116error: pub(crate) function inside private module
92117 --> $DIR/redundant_pub_crate.rs:85:9
93118 |
94119LL | pub(crate) fn g() {} // private due to m4_1
95120 | ^^^^^^^^^^^^^^^^^^^^
121+ |
122+ = help: consider using `pub` instead of `pub(crate)`
96123
97124error: pub(crate) module inside private module
98125 --> $DIR/redundant_pub_crate.rs:89:5
@@ -104,12 +131,16 @@ LL | | pub(crate) fn g() {} // private due to m4_2
104131LL | | pub fn h() {}
105132LL | | }
106133 | |_____^
134+ |
135+ = help: consider using `pub` instead of `pub(crate)`
107136
108137error: pub(crate) function inside private module
109138 --> $DIR/redundant_pub_crate.rs:92:9
110139 |
111140LL | pub(crate) fn g() {} // private due to m4_2
112141 | ^^^^^^^^^^^^^^^^^^^^
142+ |
143+ = help: consider using `pub` instead of `pub(crate)`
113144
114145error: aborting due to 16 previous errors
115146
0 commit comments