@@ -11,35 +11,59 @@ LL | #![deny(exported_private_dependencies)]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: macro `m` from private dependency 'priv_dep' is re-exported
14
- --> $DIR/pub-priv1.rs:98 :9
14
+ --> $DIR/pub-priv1.rs:156 :9
15
15
|
16
16
LL | pub use priv_dep::m;
17
17
| ^^^^^^^^^^^
18
18
19
19
error: macro `fn_like` from private dependency 'pm' is re-exported
20
- --> $DIR/pub-priv1.rs:100 :9
20
+ --> $DIR/pub-priv1.rs:158 :9
21
21
|
22
22
LL | pub use pm::fn_like;
23
23
| ^^^^^^^^^^^
24
24
25
25
error: derive macro `PmDerive` from private dependency 'pm' is re-exported
26
- --> $DIR/pub-priv1.rs:102 :9
26
+ --> $DIR/pub-priv1.rs:160 :9
27
27
|
28
28
LL | pub use pm::PmDerive;
29
29
| ^^^^^^^^^^^^
30
30
31
31
error: attribute macro `pm_attr` from private dependency 'pm' is re-exported
32
- --> $DIR/pub-priv1.rs:104 :9
32
+ --> $DIR/pub-priv1.rs:162 :9
33
33
|
34
34
LL | pub use pm::pm_attr;
35
35
| ^^^^^^^^^^^
36
36
37
37
error: variant `V1` from private dependency 'priv_dep' is re-exported
38
- --> $DIR/pub-priv1.rs:107 :9
38
+ --> $DIR/pub-priv1.rs:165 :9
39
39
|
40
40
LL | pub use priv_dep::E::V1;
41
41
| ^^^^^^^^^^^^^^^
42
42
43
+ error: type alias `Unit` from private dependency 'priv_dep' is re-exported
44
+ --> $DIR/pub-priv1.rs:168:9
45
+ |
46
+ LL | pub use priv_dep::Unit;
47
+ | ^^^^^^^^^^^^^^
48
+
49
+ error: type alias `PubPub` from private dependency 'priv_dep' is re-exported
50
+ --> $DIR/pub-priv1.rs:170:9
51
+ |
52
+ LL | pub use priv_dep::PubPub;
53
+ | ^^^^^^^^^^^^^^^^
54
+
55
+ error: type alias `PubPriv` from private dependency 'priv_dep' is re-exported
56
+ --> $DIR/pub-priv1.rs:172:9
57
+ |
58
+ LL | pub use priv_dep::PubPriv;
59
+ | ^^^^^^^^^^^^^^^^^
60
+
61
+ error: struct `Renamed` from private dependency 'priv_dep' is re-exported
62
+ --> $DIR/pub-priv1.rs:174:9
63
+ |
64
+ LL | pub use priv_dep::OtherType as Renamed;
65
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
+
43
67
error: type `OtherType` from private dependency 'priv_dep' in public interface
44
68
--> $DIR/pub-priv1.rs:29:5
45
69
|
@@ -49,82 +73,188 @@ LL | pub field: OtherType,
49
73
error: type `OtherType` from private dependency 'priv_dep' in public interface
50
74
--> $DIR/pub-priv1.rs:36:5
51
75
|
76
+ LL | pub OtherType,
77
+ | ^^^^^^^^^^^^^
78
+
79
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
80
+ --> $DIR/pub-priv1.rs:44:21
81
+ |
82
+ LL | ActualOtherType(OtherType, PubType),
83
+ | ^^^^^^^^^
84
+
85
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
86
+ --> $DIR/pub-priv1.rs:47:9
87
+ |
88
+ LL | field: OtherType,
89
+ | ^^^^^^^^^^^^^^^^
90
+
91
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
92
+ --> $DIR/pub-priv1.rs:54:1
93
+ |
94
+ LL | pub type ReexportedPublicGeneric = PublicGenericType<OtherType, ()>;
95
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
+
97
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
98
+ --> $DIR/pub-priv1.rs:56:1
99
+ |
100
+ LL | pub type ReexportedPrivateGeneric = PublicGenericType<(), OtherType>;
101
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
+
103
+ error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
104
+ --> $DIR/pub-priv1.rs:59:1
105
+ |
106
+ LL | pub struct PublicGenericBoundedType<T: OtherTrait>(T);
107
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
+
109
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
110
+ --> $DIR/pub-priv1.rs:63:5
111
+ |
52
112
LL | pub fn pub_fn_param(param: OtherType) {}
53
113
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
114
55
115
error: type `OtherType` from private dependency 'priv_dep' in public interface
56
- --> $DIR/pub-priv1.rs:39 :5
116
+ --> $DIR/pub-priv1.rs:66 :5
57
117
|
58
118
LL | pub fn pub_fn_return() -> OtherType { OtherType }
59
119
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
120
61
121
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
62
- --> $DIR/pub-priv1.rs:46 :5
122
+ --> $DIR/pub-priv1.rs:73 :5
63
123
|
64
124
LL | type Foo: OtherTrait;
65
125
| ^^^^^^^^^^^^^^^^^^^^
66
126
127
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
128
+ --> $DIR/pub-priv1.rs:80:5
129
+ |
130
+ LL | fn required_concrete() -> OtherType;
131
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
+
133
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
134
+ --> $DIR/pub-priv1.rs:83:5
135
+ |
136
+ LL | fn provided_concrete() -> OtherType { OtherType }
137
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138
+
67
139
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
68
- --> $DIR/pub-priv1.rs:54 :1
140
+ --> $DIR/pub-priv1.rs:87 :1
69
141
|
70
142
LL | pub trait WithSuperTrait: OtherTrait {}
71
143
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
144
73
145
error: type `OtherType` from private dependency 'priv_dep' in public interface
74
- --> $DIR/pub-priv1.rs:63 :5
146
+ --> $DIR/pub-priv1.rs:96 :5
75
147
|
76
148
LL | type X = OtherType;
77
149
| ^^^^^^
78
150
79
151
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
80
- --> $DIR/pub-priv1.rs:67 :1
152
+ --> $DIR/pub-priv1.rs:100 :1
81
153
|
82
154
LL | pub fn in_bounds<T: OtherTrait>(x: T) { unimplemented!() }
83
155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
156
157
+ error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
158
+ --> $DIR/pub-priv1.rs:103:1
159
+ |
160
+ LL | pub fn private_return_impl_trait() -> impl OtherTrait { OtherType }
161
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
162
+
163
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
164
+ --> $DIR/pub-priv1.rs:106:1
165
+ |
166
+ LL | pub fn private_return() -> OtherType { OtherType }
167
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168
+
85
169
error: type `OtherType` from private dependency 'priv_dep' in public interface
86
- --> $DIR/pub-priv1.rs:70 :1
170
+ --> $DIR/pub-priv1.rs:109 :1
87
171
|
88
172
LL | pub fn private_in_generic() -> std::num::Saturating<OtherType> { unimplemented!() }
89
173
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
174
91
175
error: type `OtherType` from private dependency 'priv_dep' in public interface
92
- --> $DIR/pub-priv1.rs:73 :1
176
+ --> $DIR/pub-priv1.rs:112 :1
93
177
|
94
178
LL | pub static STATIC: OtherType = OtherType;
95
179
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
180
97
181
error: type `OtherType` from private dependency 'priv_dep' in public interface
98
- --> $DIR/pub-priv1.rs:76 :1
182
+ --> $DIR/pub-priv1.rs:115 :1
99
183
|
100
184
LL | pub const CONST: OtherType = OtherType;
101
185
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
102
186
103
187
error: type `OtherType` from private dependency 'priv_dep' in public interface
104
- --> $DIR/pub-priv1.rs:79 :1
188
+ --> $DIR/pub-priv1.rs:118 :1
105
189
|
106
190
LL | pub type Alias = OtherType;
107
191
| ^^^^^^^^^^^^^^
108
192
193
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
194
+ --> $DIR/pub-priv1.rs:121:1
195
+ |
196
+ LL | pub type AliasOfAlias = priv_dep::PubPub;
197
+ | ^^^^^^^^^^^^^^^^^^^^^
198
+
109
199
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
110
- --> $DIR/pub-priv1.rs:84 :1
200
+ --> $DIR/pub-priv1.rs:126 :1
111
201
|
112
202
LL | impl OtherTrait for PublicWithPrivateImpl {}
113
203
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114
204
115
205
error: type `OtherType` from private dependency 'priv_dep' in public interface
116
- --> $DIR/pub-priv1.rs:89 :1
206
+ --> $DIR/pub-priv1.rs:131 :1
117
207
|
118
208
LL | impl PubTraitOnPrivate for OtherType {}
119
209
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
210
121
211
error: type `OtherType` from private dependency 'priv_dep' in public interface
122
- --> $DIR/pub-priv1.rs:89 :1
212
+ --> $DIR/pub-priv1.rs:131 :1
123
213
|
124
214
LL | impl PubTraitOnPrivate for OtherType {}
125
215
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
126
216
|
127
217
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
128
218
129
- error: aborting due to 20 previous errors
219
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
220
+ --> $DIR/pub-priv1.rs:137:1
221
+ |
222
+ LL | impl From<OtherType> for PublicWithStdImpl {
223
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224
+
225
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
226
+ --> $DIR/pub-priv1.rs:139:5
227
+ |
228
+ LL | fn from(val: OtherType) -> Self { Self }
229
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
230
+
231
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
232
+ --> $DIR/pub-priv1.rs:143:1
233
+ |
234
+ LL | impl From<PublicWithStdImpl> for OtherType {
235
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
236
+
237
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
238
+ --> $DIR/pub-priv1.rs:143:1
239
+ |
240
+ LL | impl From<PublicWithStdImpl> for OtherType {
241
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
242
+ |
243
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
244
+
245
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
246
+ --> $DIR/pub-priv1.rs:146:5
247
+ |
248
+ LL | fn from(val: PublicWithStdImpl) -> Self { Self }
249
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
250
+
251
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
252
+ --> $DIR/pub-priv1.rs:146:5
253
+ |
254
+ LL | fn from(val: PublicWithStdImpl) -> Self { Self }
255
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
256
+ |
257
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
258
+
259
+ error: aborting due to 41 previous errors
130
260
0 commit comments