@@ -156,17 +156,8 @@ LL | impl<T: PrivTr> Pub<T> {}
156
156
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157
157
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
158
158
159
- error: private trait `traits::PrivTr` in public interface (error E0445)
160
- --> $DIR/private-in-public-warn.rs:66:5
161
- |
162
- LL | impl<T: PrivTr> PubTr for Pub<T> {}
163
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164
- |
165
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
166
- = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
167
-
168
159
error: private trait `traits_where::PrivTr` in public interface (error E0445)
169
- --> $DIR/private-in-public-warn.rs:75 :5
160
+ --> $DIR/private-in-public-warn.rs:74 :5
170
161
|
171
162
LL | pub type Alias<T> where T: PrivTr = T;
172
163
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -175,7 +166,7 @@ LL | pub type Alias<T> where T: PrivTr = T;
175
166
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
176
167
177
168
error: private trait `traits_where::PrivTr` in public interface (error E0445)
178
- --> $DIR/private-in-public-warn.rs:79 :5
169
+ --> $DIR/private-in-public-warn.rs:78 :5
179
170
|
180
171
LL | pub trait Tr2<T> where T: PrivTr {}
181
172
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -184,7 +175,7 @@ LL | pub trait Tr2<T> where T: PrivTr {}
184
175
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
185
176
186
177
error: private trait `traits_where::PrivTr` in public interface (error E0445)
187
- --> $DIR/private-in-public-warn.rs:83 :9
178
+ --> $DIR/private-in-public-warn.rs:82 :9
188
179
|
189
180
LL | fn f<T>(arg: T) where T: PrivTr {}
190
181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -193,25 +184,16 @@ LL | fn f<T>(arg: T) where T: PrivTr {}
193
184
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
194
185
195
186
error: private trait `traits_where::PrivTr` in public interface (error E0445)
196
- --> $DIR/private-in-public-warn.rs:87 :5
187
+ --> $DIR/private-in-public-warn.rs:86 :5
197
188
|
198
189
LL | impl<T> Pub<T> where T: PrivTr {}
199
190
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
200
191
|
201
192
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
202
193
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
203
194
204
- error: private trait `traits_where::PrivTr` in public interface (error E0445)
205
- --> $DIR/private-in-public-warn.rs:90:5
206
- |
207
- LL | impl<T> PubTr for Pub<T> where T: PrivTr {}
208
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
209
- |
210
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
211
- = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
212
-
213
195
error: private trait `generics::PrivTr<generics::Pub>` in public interface (error E0445)
214
- --> $DIR/private-in-public-warn.rs:101 :5
196
+ --> $DIR/private-in-public-warn.rs:98 :5
215
197
|
216
198
LL | pub trait Tr1: PrivTr<Pub> {}
217
199
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -220,7 +202,7 @@ LL | pub trait Tr1: PrivTr<Pub> {}
220
202
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
221
203
222
204
error: private type `generics::Priv` in public interface (error E0446)
223
- --> $DIR/private-in-public-warn.rs:104 :5
205
+ --> $DIR/private-in-public-warn.rs:101 :5
224
206
|
225
207
LL | pub trait Tr2: PubTr<Priv> {}
226
208
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -229,7 +211,7 @@ LL | pub trait Tr2: PubTr<Priv> {}
229
211
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
230
212
231
213
error: private type `generics::Priv` in public interface (error E0446)
232
- --> $DIR/private-in-public-warn.rs:106 :5
214
+ --> $DIR/private-in-public-warn.rs:103 :5
233
215
|
234
216
LL | pub trait Tr3: PubTr<[Priv; 1]> {}
235
217
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -238,7 +220,7 @@ LL | pub trait Tr3: PubTr<[Priv; 1]> {}
238
220
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
239
221
240
222
error: private type `generics::Priv` in public interface (error E0446)
241
- --> $DIR/private-in-public-warn.rs:108 :5
223
+ --> $DIR/private-in-public-warn.rs:105 :5
242
224
|
243
225
LL | pub trait Tr4: PubTr<Pub<Priv>> {}
244
226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -247,7 +229,7 @@ LL | pub trait Tr4: PubTr<Pub<Priv>> {}
247
229
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
248
230
249
231
error[E0446]: private type `impls::Priv` in public interface
250
- --> $DIR/private-in-public-warn.rs:135 :9
232
+ --> $DIR/private-in-public-warn.rs:132 :9
251
233
|
252
234
LL | struct Priv;
253
235
| ------------ `impls::Priv` declared as private
@@ -256,7 +238,7 @@ LL | type Alias = Priv;
256
238
| ^^^^^^^^^^^^^^^^^^ can't leak private type
257
239
258
240
error: private type `aliases_pub::Priv` in public interface (error E0446)
259
- --> $DIR/private-in-public-warn.rs:206 :9
241
+ --> $DIR/private-in-public-warn.rs:203 :9
260
242
|
261
243
LL | pub fn f(arg: Priv) {}
262
244
| ^^^^^^^^^^^^^^^^^^^
@@ -265,7 +247,7 @@ LL | pub fn f(arg: Priv) {}
265
247
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
266
248
267
249
error[E0446]: private type `aliases_pub::Priv` in public interface
268
- --> $DIR/private-in-public-warn.rs:210 :9
250
+ --> $DIR/private-in-public-warn.rs:207 :9
269
251
|
270
252
LL | struct Priv;
271
253
| ------------ `aliases_pub::Priv` declared as private
@@ -274,7 +256,7 @@ LL | type Check = Priv;
274
256
| ^^^^^^^^^^^^^^^^^^ can't leak private type
275
257
276
258
error[E0446]: private type `aliases_pub::Priv` in public interface
277
- --> $DIR/private-in-public-warn.rs:213 :9
259
+ --> $DIR/private-in-public-warn.rs:210 :9
278
260
|
279
261
LL | struct Priv;
280
262
| ------------ `aliases_pub::Priv` declared as private
@@ -283,7 +265,7 @@ LL | type Check = Priv;
283
265
| ^^^^^^^^^^^^^^^^^^ can't leak private type
284
266
285
267
error[E0446]: private type `aliases_pub::Priv` in public interface
286
- --> $DIR/private-in-public-warn.rs:216 :9
268
+ --> $DIR/private-in-public-warn.rs:213 :9
287
269
|
288
270
LL | struct Priv;
289
271
| ------------ `aliases_pub::Priv` declared as private
@@ -292,7 +274,7 @@ LL | type Check = Priv;
292
274
| ^^^^^^^^^^^^^^^^^^ can't leak private type
293
275
294
276
error[E0446]: private type `aliases_pub::Priv` in public interface
295
- --> $DIR/private-in-public-warn.rs:219 :9
277
+ --> $DIR/private-in-public-warn.rs:216 :9
296
278
|
297
279
LL | struct Priv;
298
280
| ------------ `aliases_pub::Priv` declared as private
@@ -301,7 +283,7 @@ LL | type Check = Priv;
301
283
| ^^^^^^^^^^^^^^^^^^ can't leak private type
302
284
303
285
error: private trait `PrivTr1` in public interface (error E0445)
304
- --> $DIR/private-in-public-warn.rs:249 :5
286
+ --> $DIR/private-in-public-warn.rs:246 :5
305
287
|
306
288
LL | pub trait Tr1: PrivUseAliasTr {}
307
289
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -310,7 +292,7 @@ LL | pub trait Tr1: PrivUseAliasTr {}
310
292
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
311
293
312
294
error: private trait `PrivTr1<Priv2>` in public interface (error E0445)
313
- --> $DIR/private-in-public-warn.rs:252 :5
295
+ --> $DIR/private-in-public-warn.rs:249 :5
314
296
|
315
297
LL | pub trait Tr2: PrivUseAliasTr<PrivAlias> {}
316
298
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -319,7 +301,7 @@ LL | pub trait Tr2: PrivUseAliasTr<PrivAlias> {}
319
301
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
320
302
321
303
error: private type `Priv2` in public interface (error E0446)
322
- --> $DIR/private-in-public-warn.rs:252 :5
304
+ --> $DIR/private-in-public-warn.rs:249 :5
323
305
|
324
306
LL | pub trait Tr2: PrivUseAliasTr<PrivAlias> {}
325
307
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -341,7 +323,7 @@ LL + pub type Alias<T> = T;
341
323
|
342
324
343
325
warning: where clauses are not enforced in type aliases
344
- --> $DIR/private-in-public-warn.rs:75 :29
326
+ --> $DIR/private-in-public-warn.rs:74 :29
345
327
|
346
328
LL | pub type Alias<T> where T: PrivTr = T;
347
329
| ^^^^^^^^^
@@ -352,6 +334,6 @@ LL - pub type Alias<T> where T: PrivTr = T;
352
334
LL + pub type Alias<T> = T;
353
335
|
354
336
355
- error: aborting due to 36 previous errors; 2 warnings emitted
337
+ error: aborting due to 34 previous errors; 2 warnings emitted
356
338
357
339
For more information about this error, try `rustc --explain E0446`.
0 commit comments