resolve: Make sure visibilities of import declarations make sense#155213
resolve: Make sure visibilities of import declarations make sense#155213petrochenkov wants to merge 2 commits intorust-lang:mainfrom
Conversation
|
rustbot has assigned @jdonszelmann. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
cc @yaahc |
|
To make sure the asserts are not expensive. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
resolve: Make sure visibilities of import declarations make sense
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (89a90f3): comparison URL. Overall result: no relevant changes - no action neededBenchmarking 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. @bors rollup=never Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (primary 1.5%, secondary -6.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.6%, secondary 11.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 491.114s -> 490.825s (-0.06%) |
This comment has been minimized.
This comment has been minimized.
That they are all ordered inside the module and not more private than the module itself The `import_decl_vis` logic is reused when reporting `ambiguous_import_visibilities` lint Some asserts are hardened Some relevant tests are added
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
That they are all ordered inside the module and not more private than the module itself.
The
import_decl_vislogic is also reused when reportingambiguous_import_visibilitieslint.Some asserts are hardened.
Some relevant tests are added.
Extracted from #154149.