os-rust/compiler/rustc_resolve
Vadim Petrochenkov f0843b89d1 effective visibility: Remove questionable optimizations
First, they require eagerly calculating private visibility (current normal module), which is somewhat expensive.
Private visibilities are also lost once calculated, instead of being cached in the table.

Second, I cannot prove that the optimizations are correct.
Maybe they can be partially reinstated in the future in cases when it's cheap and provably correct to do them.
They will also probably be merged into `fn update` in that case.

Partially fixes https://github.com/rust-lang/rust/issues/104249
Fixes https://github.com/rust-lang/rust/issues/104539
2022-11-24 00:03:51 +03:00
..
src effective visibility: Remove questionable optimizations 2022-11-24 00:03:51 +03:00
Cargo.toml Auto merge of #104573 - matthiaskrgr:rollup-k36ybtp, r=matthiaskrgr 2022-11-18 20:26:58 +00:00