Commit 0f286e8
authored
Rollup merge of rust-lang#67236 - petrochenkov:docerr2, r=matthewjasper
resolve: Always resolve visibilities on impl items
Fixes rust-lang#64705.
Similarly to rust-lang#67106 this was an issue with visitor discipline.
Impl items were visited as a part of visiting `ast::ItemKind::Impl`, but they should be visit-able in isolation from their parents as well, because that's how they are visited when they are expanded from macros.
I've checked that all the remaining `resolve_visibility` calls are used correctly.
r? @matthewjasperFile tree
3 files changed
+46
-12
lines changed- src
- librustc_resolve
- test/ui/resolve
3 files changed
+46
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
651 | | - | |
652 | 650 | | |
653 | 651 | | |
654 | 652 | | |
| |||
667 | 665 | | |
668 | 666 | | |
669 | 667 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | 668 | | |
674 | 669 | | |
675 | 670 | | |
| |||
765 | 760 | | |
766 | 761 | | |
767 | 762 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | 763 | | |
775 | 764 | | |
776 | 765 | | |
| |||
785 | 774 | | |
786 | 775 | | |
787 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
788 | 780 | | |
789 | 781 | | |
790 | 782 | | |
| |||
1118 | 1110 | | |
1119 | 1111 | | |
1120 | 1112 | | |
1121 | | - | |
1122 | 1113 | | |
1123 | 1114 | | |
1124 | 1115 | | |
| |||
1202 | 1193 | | |
1203 | 1194 | | |
1204 | 1195 | | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments