@@ -288,6 +288,18 @@ note: but associated type `aliases_pub::PrivTr::Assoc` is only usable at visibil
288288LL | type Assoc = m::Pub3;
289289 | ^^^^^^^^^^
290290
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+
291303warning: type `aliases_pub::Priv` is more private than the item `aliases_pub::f3`
292304 --> $DIR/private-in-public.rs:106:5
293305 |
@@ -301,76 +313,88 @@ LL | struct Priv;
301313 | ^^^^^^^^^^^
302314
303315warning: 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
305317 |
306318LL | pub fn f1(arg: PrivUseAlias) {}
307319 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f1` is reachable at visibility `pub(crate)`
308320 |
309321note: 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
311323 |
312324LL | struct Priv1;
313325 | ^^^^^^^^^^^^
314326
315327warning: 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
317329 |
318330LL | pub fn f2(arg: PrivAlias) {}
319331 | ^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f2` is reachable at visibility `pub(crate)`
320332 |
321333note: 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
323335 |
324336LL | struct Priv2;
325337 | ^^^^^^^^^^^^
326338
327339warning: 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
329341 |
330342LL | pub fn f3(arg: <Priv as PrivTr>::Assoc) {}
331343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f3` is reachable at visibility `pub(crate)`
332344 |
333345note: 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
335347 |
336348LL | type Assoc = Priv3;
337349 | ^^^^^^^^^^
338350
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+
339363warning: 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
341365 |
342366LL | pub fn f3(arg: <Priv as PrivTr>::Assoc) {}
343367 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_priv::f3` is reachable at visibility `pub(crate)`
344368 |
345369note: 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
347371 |
348372LL | struct Priv;
349373 | ^^^^^^^^^^^
350374
351375warning: 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
353377 |
354378LL | pub fn f2(arg: PrivAliasGeneric) {}
355379 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_params::f2` is reachable at visibility `pub(crate)`
356380 |
357381note: 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
359383 |
360384LL | struct Priv;
361385 | ^^^^^^^^^^^
362386
363387warning: 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
365389 |
366390LL | pub fn f3(arg: Result<u8>) {}
367391 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ function `aliases_params::f3` is reachable at visibility `pub(crate)`
368392 |
369393note: 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
371395 |
372396LL | struct Priv;
373397 | ^^^^^^^^^^^
374398
375- warning: 31 warnings emitted
399+ warning: 33 warnings emitted
376400
0 commit comments