bors b9c5fdc888 Auto merge of #111378 - jieyouxu:local-shadows-glob-reexport, r=petrochenkov
Add warn-by-default lint when local binding shadows exported glob re-export item

This PR introduces a warn-by-default rustc lint for when a local binding (a use statement, or a type declaration) produces a name which shadows an exported glob re-export item, causing the name from the exported glob re-export to be hidden (see #111336).

### Unresolved Questions

- [x] ~~Is this approach correct? While it passes the UI tests, I'm not entirely convinced it is correct.~~ Seems to be ok now.
- [x] ~~What should the lint be called / how should it be worded? I don't like calling `use x::*;` or `struct Foo;` a "local binding" but they are `NameBinding`s internally if I'm not mistaken.~~ ~~The lint is called `local_binding_shadows_glob_reexport` for now, unless a better name is suggested.~~ `hidden_glob_reexports`.

Fixes #111336.
2023-05-28 01:18:51 +00:00
..
2023-04-30 00:06:26 +08:00
2023-05-25 17:40:46 +00:00
2023-05-12 00:10:52 +00:00
2023-05-05 20:36:21 +02:00
2023-05-08 17:58:01 -03:00
2023-05-08 17:58:01 -03:00
2023-05-04 18:06:07 +00:00
2023-05-12 00:10:52 +00:00
2023-05-11 12:14:57 -07:00
2023-05-08 17:58:01 -03:00
2023-05-25 17:40:46 +00:00
2023-05-24 21:15:50 -03:00
2023-04-30 14:08:26 +00:00
2023-05-08 03:36:30 +00:00
2023-05-12 00:10:52 +00:00
2023-04-29 13:01:46 +01:00
2023-05-25 18:17:02 +00:00
2023-05-02 10:32:08 +00:00
2023-05-05 14:58:52 -07:00
2023-04-29 13:01:46 +01:00
2023-05-08 03:36:30 +00:00
2023-05-19 20:58:06 +02:00
2023-04-26 21:02:56 +02:00
2023-05-08 03:36:30 +00:00
2023-05-01 16:15:17 +08:00
2023-04-29 13:01:46 +01:00
2023-05-16 20:30:48 +00:00
2023-05-12 00:10:52 +00:00