rust/src/librustdoc
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
..
clean Update comment 2021-11-24 18:32:03 -05:00
doctest Rename --display-warnings to --display-doctest-warnings 2021-09-14 10:49:56 +02:00
formats Remove ResolvedPath.did 2021-11-24 12:06:47 -08:00
html Auto merge of #91195 - camelid:path-did, r=jyn514 2021-11-25 13:11:35 +00:00
json Remove ResolvedPath.did 2021-11-24 12:06:47 -08:00
passes Use fast comparison against kw::Empty 2021-11-19 11:34:41 -05:00
theme Clean up rustdoc static files 2021-07-07 17:52:18 +02:00
Cargo.toml rustdoc: Switch to mainline rayon 2021-10-28 18:26:57 -07:00
config.rs Fix clippy lints in librustdoc 2021-10-25 11:30:09 +02:00
core.rs rustdoc: Pass DocContext to Cache::populate 2021-11-19 17:55:40 -05:00
docfs.rs rustdoc: Remove a single-use macro 2021-10-28 18:39:32 -07:00
doctest.rs fix(doctest): detect extern crate items in statement doctests 2021-11-22 19:47:58 -07:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs rustdoc: Fix some unescaped HTML tags in docs 2021-11-19 15:54:05 -05:00
fold.rs rustdoc: Use conditional for _stripped fold 2021-11-04 09:43:13 -07:00
lib.rs Delete rustdoc::doctree 2021-11-13 21:50:13 +08:00
lint.rs Warn when rustdoc:: group is omitted from lint names 2021-07-03 15:32:09 -04:00
markdown.rs heading_level: u32 -> heading_offset: HeadingOffset 2021-10-04 22:28:04 -04:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
scrape_examples.rs Auto merge of #90635 - matthiaskrgr:rustdoc_compl, r=GuillaumeGomez 2021-11-07 02:17:35 +00:00
theme.rs Change librustdoc write(.. \n) to writeln(..); fix comment in grammar 2021-05-03 02:19:57 -05:00
visit.rs List all cases explicitly in Doc{Folder,Visitor} 2021-11-01 16:15:46 -07:00
visit_ast.rs Delete rustdoc::doctree 2021-11-13 21:50:13 +08:00
visit_lib.rs Add ty::Visibility::is_public() 2021-11-09 18:35:00 -08:00

For more information about how librustdoc works, see the rustc dev guide.