@@ -288,6 +288,18 @@ note: but associated type `aliases_pub::PrivTr::Assoc` is only usable at visibil
288
288
LL | type Assoc = m::Pub3;
289
289
| ^^^^^^^^^^
290
290
291
+ warning: trait `aliases_pub::PrivTr` is more private than the item `aliases_pub::f3`
292
+ --> $DIR/private-in-public.rs:106:5
293
+ |
294
+ LL | pub fn f3(arg: <Priv as PrivTr>::Assoc) {}
295
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_pub::f3` is reachable at visibility `pub(crate)`
296
+ |
297
+ note: but trait `aliases_pub::PrivTr` is only usable at visibility `pub(self)`
298
+ --> $DIR/private-in-public.rs:100:5
299
+ |
300
+ LL | trait PrivTr {
301
+ | ^^^^^^^^^^^^
302
+
291
303
warning: type `aliases_pub::Priv` is more private than the item `aliases_pub::f3`
292
304
--> $DIR/private-in-public.rs:106:5
293
305
|
@@ -301,76 +313,88 @@ LL | struct Priv;
301
313
| ^^^^^^^^^^^
302
314
303
315
warning: type `Priv1` is more private than the item `aliases_priv::f1`
304
- --> $DIR/private-in-public.rs:133 :5
316
+ --> $DIR/private-in-public.rs:134 :5
305
317
|
306
318
LL | pub fn f1(arg: PrivUseAlias) {}
307
319
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f1` is reachable at visibility `pub(crate)`
308
320
|
309
321
note: but type `Priv1` is only usable at visibility `pub(self)`
310
- --> $DIR/private-in-public.rs:118 :5
322
+ --> $DIR/private-in-public.rs:119 :5
311
323
|
312
324
LL | struct Priv1;
313
325
| ^^^^^^^^^^^^
314
326
315
327
warning: type `Priv2` is more private than the item `aliases_priv::f2`
316
- --> $DIR/private-in-public.rs:134 :5
328
+ --> $DIR/private-in-public.rs:135 :5
317
329
|
318
330
LL | pub fn f2(arg: PrivAlias) {}
319
331
| ^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f2` is reachable at visibility `pub(crate)`
320
332
|
321
333
note: but type `Priv2` is only usable at visibility `pub(self)`
322
- --> $DIR/private-in-public.rs:119 :5
334
+ --> $DIR/private-in-public.rs:120 :5
323
335
|
324
336
LL | struct Priv2;
325
337
| ^^^^^^^^^^^^
326
338
327
339
warning: associated type `aliases_priv::PrivTr::Assoc` is more private than the item `aliases_priv::f3`
328
- --> $DIR/private-in-public.rs:135 :5
340
+ --> $DIR/private-in-public.rs:136 :5
329
341
|
330
342
LL | pub fn f3(arg: <Priv as PrivTr>::Assoc) {}
331
343
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f3` is reachable at visibility `pub(crate)`
332
344
|
333
345
note: but associated type `aliases_priv::PrivTr::Assoc` is only usable at visibility `pub(self)`
334
- --> $DIR/private-in-public.rs:129 :9
346
+ --> $DIR/private-in-public.rs:130 :9
335
347
|
336
348
LL | type Assoc = Priv3;
337
349
| ^^^^^^^^^^
338
350
351
+ warning: trait `aliases_priv::PrivTr` is more private than the item `aliases_priv::f3`
352
+ --> $DIR/private-in-public.rs:136:5
353
+ |
354
+ LL | pub fn f3(arg: <Priv as PrivTr>::Assoc) {}
355
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f3` is reachable at visibility `pub(crate)`
356
+ |
357
+ note: but trait `aliases_priv::PrivTr` is only usable at visibility `pub(self)`
358
+ --> $DIR/private-in-public.rs:129:5
359
+ |
360
+ LL | trait PrivTr {
361
+ | ^^^^^^^^^^^^
362
+
339
363
warning: type `aliases_priv::Priv` is more private than the item `aliases_priv::f3`
340
- --> $DIR/private-in-public.rs:135 :5
364
+ --> $DIR/private-in-public.rs:136 :5
341
365
|
342
366
LL | pub fn f3(arg: <Priv as PrivTr>::Assoc) {}
343
367
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f3` is reachable at visibility `pub(crate)`
344
368
|
345
369
note: but type `aliases_priv::Priv` is only usable at visibility `pub(self)`
346
- --> $DIR/private-in-public.rs:116 :5
370
+ --> $DIR/private-in-public.rs:117 :5
347
371
|
348
372
LL | struct Priv;
349
373
| ^^^^^^^^^^^
350
374
351
375
warning: type `aliases_params::Priv` is more private than the item `aliases_params::f2`
352
- --> $DIR/private-in-public.rs:145 :5
376
+ --> $DIR/private-in-public.rs:147 :5
353
377
|
354
378
LL | pub fn f2(arg: PrivAliasGeneric) {}
355
379
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_params::f2` is reachable at visibility `pub(crate)`
356
380
|
357
381
note: but type `aliases_params::Priv` is only usable at visibility `pub(self)`
358
- --> $DIR/private-in-public.rs:141 :5
382
+ --> $DIR/private-in-public.rs:143 :5
359
383
|
360
384
LL | struct Priv;
361
385
| ^^^^^^^^^^^
362
386
363
387
warning: type `aliases_params::Priv` is more private than the item `aliases_params::f3`
364
- --> $DIR/private-in-public.rs:147 :5
388
+ --> $DIR/private-in-public.rs:149 :5
365
389
|
366
390
LL | pub fn f3(arg: Result<u8>) {}
367
391
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_params::f3` is reachable at visibility `pub(crate)`
368
392
|
369
393
note: but type `aliases_params::Priv` is only usable at visibility `pub(self)`
370
- --> $DIR/private-in-public.rs:141 :5
394
+ --> $DIR/private-in-public.rs:143 :5
371
395
|
372
396
LL | struct Priv;
373
397
| ^^^^^^^^^^^
374
398
375
- warning: 31 warnings emitted
399
+ warning: 33 warnings emitted
376
400
0 commit comments