rust/compiler/rustc_resolve
Dylan DPC 0b3e018137
Rollup merge of #103249 - petrochenkov:revaddids, r=oli-obk
resolve: Revert "Set effective visibilities for imports more precisely"

In theory the change was correct, but in practice the use of import items in HIR is limited and hacky, and it expects that (effective) visibilities for all (up to) 3 IDs of the import are set to the value reflecting (effective) visibility of the whole syntactic `use` item rather than its individual components.

Fixes https://github.com/rust-lang/rust/issues/102352
r? `@oli-obk`
2022-10-23 15:20:18 +05:30
..
src Rollup merge of #103249 - petrochenkov:revaddids, r=oli-obk 2022-10-23 15:20:18 +05:30
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00