Commit cb7e527
committed
Fix broken handling of primitive items
- Fix broken handling of primitive associated items
- Remove fragment hack
Fixes 83083
- more logging
- Update CrateNum hacks
The CrateNum has no relation to where in the dependency tree the crate
is, only when it's loaded. Explicitly special-case core instead of
assuming it will be the first DefId.
- Update and add tests
- Cache calculation of primitive locations
This could possibly be avoided by passing a Cache into
collect_intra_doc_links; but that's a much larger change, and doesn't
seem valuable other than for this.1 parent f78acae commit cb7e527
File tree
16 files changed
+144
-165
lines changed- src
- librustdoc
- clean
- formats
- html
- json
- passes
- test
- rustdoc-ui/intra-doc
- rustdoc
- auxiliary
- intra-doc
- auxiliary
- primitive
16 files changed
+144
-165
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
517 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
518 | 478 | | |
519 | 479 | | |
520 | 480 | | |
| |||
531 | 491 | | |
532 | 492 | | |
533 | 493 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
546 | 498 | | |
547 | 499 | | |
548 | 500 | | |
| |||
963 | 915 | | |
964 | 916 | | |
965 | 917 | | |
966 | | - | |
| 918 | + | |
967 | 919 | | |
968 | 920 | | |
969 | 921 | | |
| |||
975 | 927 | | |
976 | 928 | | |
977 | 929 | | |
978 | | - | |
| 930 | + | |
979 | 931 | | |
980 | 932 | | |
981 | 933 | | |
| |||
1802 | 1754 | | |
1803 | 1755 | | |
1804 | 1756 | | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1805 | 1790 | | |
1806 | 1791 | | |
1807 | 1792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
513 | 517 | | |
514 | 518 | | |
515 | 519 | | |
516 | 520 | | |
517 | 521 | | |
518 | 522 | | |
519 | 523 | | |
| 524 | + | |
520 | 525 | | |
521 | 526 | | |
522 | 527 | | |
| |||
548 | 553 | | |
549 | 554 | | |
550 | 555 | | |
| 556 | + | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
106 | 102 | | |
107 | | - | |
108 | | - | |
| 103 | + | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
| |||
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 236 | + | |
244 | 237 | | |
245 | 238 | | |
246 | 239 | | |
| |||
388 | 381 | | |
389 | 382 | | |
390 | 383 | | |
391 | | - | |
| 384 | + | |
392 | 385 | | |
393 | 386 | | |
394 | 387 | | |
| |||
475 | 468 | | |
476 | 469 | | |
477 | 470 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | 471 | | |
487 | 472 | | |
488 | 473 | | |
| |||
517 | 502 | | |
518 | 503 | | |
519 | 504 | | |
| 505 | + | |
| 506 | + | |
520 | 507 | | |
521 | 508 | | |
522 | 509 | | |
| |||
1152 | 1139 | | |
1153 | 1140 | | |
1154 | 1141 | | |
1155 | | - | |
| 1142 | + | |
1156 | 1143 | | |
1157 | 1144 | | |
1158 | 1145 | | |
| |||
1174 | 1161 | | |
1175 | 1162 | | |
1176 | 1163 | | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | 1164 | | |
1186 | | - | |
1187 | 1165 | | |
1188 | 1166 | | |
1189 | 1167 | | |
| |||
1303 | 1281 | | |
1304 | 1282 | | |
1305 | 1283 | | |
1306 | | - | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1307 | 1290 | | |
1308 | 1291 | | |
1309 | 1292 | | |
1310 | 1293 | | |
1311 | | - | |
| 1294 | + | |
1312 | 1295 | | |
1313 | 1296 | | |
1314 | 1297 | | |
| |||
2069 | 2052 | | |
2070 | 2053 | | |
2071 | 2054 | | |
2072 | | - | |
2073 | | - | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
2074 | 2060 | | |
2075 | 2061 | | |
2076 | 2062 | | |
| |||
2198 | 2184 | | |
2199 | 2185 | | |
2200 | 2186 | | |
| 2187 | + | |
2201 | 2188 | | |
2202 | 2189 | | |
2203 | 2190 | | |
2204 | | - | |
| 2191 | + | |
2205 | 2192 | | |
2206 | 2193 | | |
2207 | 2194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
0 commit comments