1
Fork 0
rust/compiler/rustc_resolve/src
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
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Rollup merge of #101908 - chenyukang:fix-101880, r=estebank 2022-10-23 15:20:16 +05:30
access_levels.rs resolve: Revert "Set effective visibilities for imports more precisely" 2022-10-19 18:42:47 +04:00
build_reduced_graph.rs rustc_hir: Less error-prone methods for accessing PartialRes resolution 2022-10-11 09:04:52 +04:00
check_unused.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
def_collector.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
diagnostics.rs Account for hygiene when suggesting typos. 2022-10-16 08:56:39 +00:00
ident.rs Shrink hir::def::Res. 2022-09-29 08:44:52 +10:00
imports.rs resolve: Revert "Set effective visibilities for imports more precisely" 2022-10-19 18:42:47 +04:00
late.rs Rollup merge of #103221 - TaKO8Ki:fix-103202, r=oli-obk 2022-10-20 22:42:38 +02:00
lib.rs more dupe word typos 2022-10-14 12:57:56 +08:00
macros.rs rustc_hir: Less error-prone methods for accessing PartialRes resolution 2022-10-11 09:04:52 +04:00