Files
rust/tests/rustdoc-html/intra-doc
Jacob Pratt 6a25fdd901 Rollup merge of #161054 - GuillaumeGomez:enum-variant-field-title, r=Urgau
rustdoc: Fix link title attribute value when field of enum variants

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

The issue was that we link to parent page, we generate a "fragment" to the parent item (so here the enum), because we forgot to take into account that there might be two levels: enum variants can have fields. So in case it's an enum and the `DefId` is a field, we add the field's parent name (so the enum variant) to the title.

r? @Urgau
2026-08-13 18:16:29 -04:00
..
…
2026-04-20 18:38:25 +10:00
2026-07-13 10:54:53 +02:00
…