]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #103249 - petrochenkov:revaddids, r=oli-obk
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Sun, 23 Oct 2022 09:50:18 +0000 (15:20 +0530)
committerGitHub <noreply@github.com>
Sun, 23 Oct 2022 09:50:18 +0000 (15:20 +0530)
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`


Trivial merge