Commit c4f836a
committed
Auto merge of rust-lang#77820 - jyn514:from-inner, r=petrochenkov
Add `Item::from_def_id_and_kind` to reduce duplication in rustdoc
This makes it harder to make typos, and also makes it much more clear what's intentionally different rather than a typo (look for `what_rustc_thinks`).
Found this while working on rust-lang#76998, I really didn't want to add `const_visibility` in 20 different places.
r? `@GuillaumeGomez`File tree
10 files changed
+274
-446
lines changed- compiler/rustc_middle/src/hir/map
- src
- librustdoc
- clean
- html
- passes
- test/rustdoc
10 files changed
+274
-446
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
822 | 822 | | |
823 | 823 | | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
828 | 837 | | |
829 | 838 | | |
830 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 127 | + | |
| 128 | + | |
137 | 129 | | |
138 | 130 | | |
139 | 131 | | |
| |||
443 | 435 | | |
444 | 436 | | |
445 | 437 | | |
446 | | - | |
447 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
448 | 442 | | |
449 | 443 | | |
450 | 444 | | |
| |||
455 | 449 | | |
456 | 450 | | |
457 | 451 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 452 | + | |
| 453 | + | |
466 | 454 | | |
467 | 455 | | |
468 | 456 | | |
| |||
0 commit comments