rust/src/librustdoc/html
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
..
highlight rustdoc: use better highlighting for *const, *mut, and &mut 2021-10-25 11:13:43 -07:00
length_limit Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown heading_level: u32 -> heading_offset: HeadingOffset 2021-10-04 22:28:04 -04:00
render Auto merge of #91195 - camelid:path-did, r=jyn514 2021-11-25 13:11:35 +00:00
static Auto merge of #91203 - GuillaumeGomez:rollup-kwtqvb1, r=GuillaumeGomez 2021-11-24 23:09:42 +00:00
templates Move scripts on the rustdoc template into head and apply the defer attribute 2021-11-20 21:40:41 +09:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs rustdoc tweaking 2021-01-30 01:02:18 +00:00
format.rs Remove ResolvedPath.did 2021-11-24 12:06:47 -08:00
highlight.rs Fix RustDoc 2021-11-23 20:36:17 +00:00
layout.rs Fix clippy lints in librustdoc 2021-10-25 11:30:09 +02:00
length_limit.rs Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown.rs rustdoc: Avoid using Iterator::count() where possible 2021-11-18 23:04:51 -05:00
mod.rs Refactor Markdown length-limited summary implementation 2021-08-19 16:22:54 -07:00
sources.rs rustdoc: Small micro-optimizations and cleanups 2021-10-31 21:10:32 -07:00
static_files.rs rustdoc: use ttf based font for cjk glyphs 2021-10-26 10:58:13 +09:00
tests.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
toc.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00