Files
rust/tests/rustdoc-html
Jonathan Brouwer 4c79c88679 Rollup merge of #162669 - GuillaumeGomez:inline-same-item-with-different-names, r=lolbinarycat
[rustdoc] Correctly handle intra-doc links on inlined same item with different names

Fixes https://github.com/rust-lang/rust/issues/136777.

It works as follow: we keep the `DefId` indexing, but we add a new `alternatives` entry (same inlined items, but under a different path) which allows to pick the right entry.

So now, why this approach instead of changing the indexing (like `(DefId, Symbol)`)? Because it's much less common to import a same item with different names, so increasing the size of the index seems unnecessary. That does make the code more noisy, which I'm not a big fan of, so if someone has ideas for improvements, definitely interested!

r? @lolbinarycat
2026-09-19 08:45:33 +02:00
..
2026-07-13 10:54:53 +02:00
2026-09-05 17:24:32 +02:00
2026-09-11 17:08:12 +02:00
…
…
2026-09-11 17:08:12 +02:00
…
…
…
…
…
…
…
2026-07-13 10:54:53 +02:00
2026-09-11 17:08:12 +02:00
2026-09-11 17:08:12 +02:00
…