Files
rust/tests/rustdoc-html
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-07-13 10:54:53 +02:00
2026-06-12 19:11:22 -04:00
2026-04-01 23:05:42 +01:00
…
2026-02-24 11:41:26 -05:00
2026-06-07 11:06:19 +03:00
…
…
…
…
2026-06-07 13:58:33 -04:00
…
…
…
…
2026-07-13 10:54:53 +02:00
…
2026-02-10 18:00:54 +00:00
…
…