rust/src/librustdoc/html/render
bors 862962b90e Auto merge of #91195 - camelid:path-did, r=jyn514
rustdoc: Remove `ResolvedPath.did`

`ResolvedPath.did` was not actually the same as `.path.def_id()`. Instead,
`.did` referred to the `DefId` of the page to be used as a hyperlink target.
For example, a link to `Struct::method()` would use `Struct`'s `DefId` as its
`.did` field. This behavior is confusing, easy to accidentally misuse, and can
instead be obtained on-demand when computing hyperlink targets. It's also likely
part of the reason `kind_side_channel` exists. I'm currently working on some
experimental refactorings in `collect_intra_doc_links` that I believe require --
or at least benefit from -- removing `.did`.

r? `@jyn514`
2021-11-25 13:11:35 +00:00
..
cache.rs Remove ResolvedPath.did 2021-11-24 12:06:47 -08:00
context.rs Clean up now that visitors only need &clean::Crate 2021-10-31 20:59:22 -07:00
mod.rs Auto merge of #91195 - camelid:path-did, r=jyn514 2021-11-25 13:11:35 +00:00
print_item.rs Remove ResolvedPath.did 2021-11-24 12:06:47 -08:00
span_map.rs Clean up now that visitors only need &clean::Crate 2021-10-31 20:59:22 -07:00
templates.rs Move template initialization into its own file. 2021-10-08 23:28:42 -07:00
tests.rs Corrected imports for render tests and mod files 2021-03-04 10:25:00 -08:00
write_shared.rs rustdoc: Remove top-level wrappers for ImplKind methods 2021-11-07 18:26:37 -08:00