@@ -5,12 +5,15 @@ LL | pub(crate) fn g() {} // private due to m1
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::redundant-pub-crate` implied by `-D warnings`
8
+ = help: consider using `pub` instead of `pub(crate)`
8
9
9
10
error: pub(crate) function inside private module
10
11
--> $DIR/redundant_pub_crate.rs:10:9
11
12
|
12
13
LL | pub(crate) fn g() {} // private due to m1_1 and m1
13
14
| ^^^^^^^^^^^^^^^^^^^^
15
+ |
16
+ = help: consider using `pub` instead of `pub(crate)`
14
17
15
18
error: pub(crate) module inside private module
16
19
--> $DIR/redundant_pub_crate.rs:14:5
@@ -22,30 +25,40 @@ LL | | pub(crate) fn g() {} // private due to m1_2 and m1
22
25
LL | | pub fn h() {}
23
26
LL | | }
24
27
| |_____^
28
+ |
29
+ = help: consider using `pub` instead of `pub(crate)`
25
30
26
31
error: pub(crate) function inside private module
27
32
--> $DIR/redundant_pub_crate.rs:17:9
28
33
|
29
34
LL | pub(crate) fn g() {} // private due to m1_2 and m1
30
35
| ^^^^^^^^^^^^^^^^^^^^
36
+ |
37
+ = help: consider using `pub` instead of `pub(crate)`
31
38
32
39
error: pub(crate) function inside private module
33
40
--> $DIR/redundant_pub_crate.rs:23:9
34
41
|
35
42
LL | pub(crate) fn g() {} // private due to m1
36
43
| ^^^^^^^^^^^^^^^^^^^^
44
+ |
45
+ = help: consider using `pub` instead of `pub(crate)`
37
46
38
47
error: pub(crate) function inside private module
39
48
--> $DIR/redundant_pub_crate.rs:30:5
40
49
|
41
50
LL | pub(crate) fn g() {} // already crate visible due to m2
42
51
| ^^^^^^^^^^^^^^^^^^^^
52
+ |
53
+ = help: consider using `pub` instead of `pub(crate)`
43
54
44
55
error: pub(crate) function inside private module
45
56
--> $DIR/redundant_pub_crate.rs:35:9
46
57
|
47
58
LL | pub(crate) fn g() {} // private due to m2_1
48
59
| ^^^^^^^^^^^^^^^^^^^^
60
+ |
61
+ = help: consider using `pub` instead of `pub(crate)`
49
62
50
63
error: pub(crate) module inside private module
51
64
--> $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
57
70
LL | | pub fn h() {}
58
71
LL | | }
59
72
| |_____^
73
+ |
74
+ = help: consider using `pub` instead of `pub(crate)`
60
75
61
76
error: pub(crate) function inside private module
62
77
--> $DIR/redundant_pub_crate.rs:42:9
63
78
|
64
79
LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2
65
80
| ^^^^^^^^^^^^^^^^^^^^
81
+ |
82
+ = help: consider using `pub` instead of `pub(crate)`
66
83
67
84
error: pub(crate) function inside private module
68
85
--> $DIR/redundant_pub_crate.rs:48:9
69
86
|
70
87
LL | pub(crate) fn g() {} // already crate visible due to m2
71
88
| ^^^^^^^^^^^^^^^^^^^^
89
+ |
90
+ = help: consider using `pub` instead of `pub(crate)`
72
91
73
92
error: pub(crate) function inside private module
74
93
--> $DIR/redundant_pub_crate.rs:60:9
75
94
|
76
95
LL | pub(crate) fn g() {} // private due to m3_1
77
96
| ^^^^^^^^^^^^^^^^^^^^
97
+ |
98
+ = help: consider using `pub` instead of `pub(crate)`
78
99
79
100
error: pub(crate) function inside private module
80
101
--> $DIR/redundant_pub_crate.rs:67:9
81
102
|
82
103
LL | pub(crate) fn g() {} // already crate visible due to m3_2
83
104
| ^^^^^^^^^^^^^^^^^^^^
105
+ |
106
+ = help: consider using `pub` instead of `pub(crate)`
84
107
85
108
error: pub(crate) function inside private module
86
109
--> $DIR/redundant_pub_crate.rs:80:5
87
110
|
88
111
LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
89
112
| ^^^^^^^^^^^^^^^^^^^^
113
+ |
114
+ = help: consider using `pub` instead of `pub(crate)`
90
115
91
116
error: pub(crate) function inside private module
92
117
--> $DIR/redundant_pub_crate.rs:85:9
93
118
|
94
119
LL | pub(crate) fn g() {} // private due to m4_1
95
120
| ^^^^^^^^^^^^^^^^^^^^
121
+ |
122
+ = help: consider using `pub` instead of `pub(crate)`
96
123
97
124
error: pub(crate) module inside private module
98
125
--> $DIR/redundant_pub_crate.rs:89:5
@@ -104,12 +131,16 @@ LL | | pub(crate) fn g() {} // private due to m4_2
104
131
LL | | pub fn h() {}
105
132
LL | | }
106
133
| |_____^
134
+ |
135
+ = help: consider using `pub` instead of `pub(crate)`
107
136
108
137
error: pub(crate) function inside private module
109
138
--> $DIR/redundant_pub_crate.rs:92:9
110
139
|
111
140
LL | pub(crate) fn g() {} // private due to m4_2
112
141
| ^^^^^^^^^^^^^^^^^^^^
142
+ |
143
+ = help: consider using `pub` instead of `pub(crate)`
113
144
114
145
error: aborting due to 16 previous errors
115
146
0 commit comments