rust/compiler/rustc_resolve/src
bors 41e0363055 Auto merge of #104602 - petrochenkov:effvisperf5, r=oli-obk
privacy: Fix more (potential) issues with effective visibilities

Continuation of https://github.com/rust-lang/rust/pull/103965.
See individual commits for more detailed description of the changes.

The shortcuts removed in https://github.com/rust-lang/rust/pull/104602/commits/4eb63f618e601efee657d24cd4e8833fb03fac4c and https://github.com/rust-lang/rust/pull/104602/commits/c7c7d1672739e38c8d39ae861b284486aefd5b48 could actually be correct (or correct after some tweaks), but they used global reasoning like "we can skip this update because if the code compiles then some other update should do the same thing eventually".
I have some expertise in this area, but I still have doubt whether such global reasoning was correct or not, especially in presence of all possible exotic cases with imports.
After this PR all table changes should be "locally correct" after every update, even if it may be overcautious.
If similar optimizations are introduced again they will need detailed comments explaining why it's legal to do what they do and providing proofs.

Fixes https://github.com/rust-lang/rust/issues/104249.
Fixes https://github.com/rust-lang/rust/issues/104539.
2022-11-25 06:14:42 +00:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late resolve: Don't use constructor def ids in the map for field names 2022-11-23 00:53:50 +03:00
build_reduced_graph.rs resolve: Don't use constructor def ids in the map for field names 2022-11-23 00:53:50 +03:00
check_unused.rs resolve: Not all imports have their own NodeId 2022-10-31 20:25:27 +04:00
def_collector.rs Auto merge of #104711 - Dylan-DPC:rollup-gkw1qr8, r=Dylan-DPC 2022-11-22 13:18:45 +00:00
diagnostics.rs Auto merge of #104573 - matthiaskrgr:rollup-k36ybtp, r=matthiaskrgr 2022-11-18 20:26:58 +00:00
effective_visibilities.rs effective visibility: Stop recalculating current private visibility 2022-11-24 01:30:58 +03:00
errors.rs migrating rustc_resolve to SessionDiagnostic. work in progress. start 2022-11-13 19:39:26 +05:30
ident.rs Rollup merge of #103760 - petrochenkov:macimp, r=cjgillot 2022-11-01 22:01:36 +05:30
imports.rs Rollup merge of #103953 - TaKO8Ki:remove-unused-arg-from-throw_unresolved_import_error, r=oli-obk 2022-11-04 12:18:03 +01:00
late.rs Auto merge of #104321 - Swatinem:async-gen, r=oli-obk 2022-11-24 17:14:42 +00:00
lib.rs Rollup merge of #101162 - rajputrajat:master, r=davidtwco 2022-11-18 14:13:35 +01:00
macros.rs Rollup merge of #102049 - fee1-dead-contrib:derive_const, r=oli-obk 2022-11-12 12:02:50 +05:30