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