Files
rust/tests
Jacob Pratt 969f99c739 Rollup merge of #163682 - GuillaumeGomez:jump-to-variant, r=Urgau
[rustdoc] Correctly link to (imported) enum variants with "jump to def"

New bug I found while working on https://github.com/rust-lang/rust/pull/162808.

Explanations: this one was quite tricky as it took me a while to understand that variants could be imported and present in `Cache::external_paths`. So the path was entered while generating a link for "jump to def", generating a URL looking like this: `module/enum_name/variant.variant_name.html`, which is obviously very wrong as it should be `module/enum.enum_name.html#variant.variant_name`.

r? @Urgau
2026-10-03 22:30:41 -04:00
..