Privacy: fix effective visibility calculation for items reachable through RPIT#156673
Privacy: fix effective visibility calculation for items reachable through RPIT#156673Bryanskiy wants to merge 1 commit into
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Privacy: fix effective visibility calculation for items reachable through RPIT
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (e9de5d9): comparison URL. Overall result: ❌ regressions - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -3.7%, secondary -2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.4%, secondary -0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 511.658s -> 511.881s (0.04%) |
|
The fix is too conservative. Even if there is no RPIT in the crate, it will mark private items as |
|
This needs an issue reproduction using |
|
Reminder, once the PR becomes ready for a review, use |
|
☔ The latest upstream changes (presumably #156228) made this pull request unmergeable. Please resolve the merge conflicts. |
For example, if a trait is
ReachableThroughImplTrait, then the defs reachable from the trait should also be marked asReachableThroughImplTrait. However, this is not the case, since effective visibility is incorrectly limited by nominal visibility.r? @petrochenkov