rust/src/librustdoc
Camelid 4c51a66d67 Don't share id_map and deref_id_map
All the tests passed, so it doesn't seem they need to be shared.
Plus they should be item/page-specific.

I'm not sure why they were shared before. I think the reason `id_map`
worked as a shared value before is that it is cleared before rendering
each item (in `render_item`). And then I'm guessing `deref_id_map`
worked because it's a hashmap keyed by `DefId`, so there was no overlap
(though I'm guessing we could have had issues in the future).

Note that `id_map` currently still has to be cleared because otherwise
child items would inherit the `id_map` of their parent. I'm hoping to
figure out a way to stop cloning `Context`, but until then we have to
reset `id_map`.
2021-03-05 19:40:54 -08:00
..
clean Pass CrateNum by value instead of by reference 2021-03-03 20:07:15 -08:00
doctest Fix injected errors when running doctests on a crate named after a keyword 2021-02-11 17:16:43 -05:00
formats Remove krate.version; fix crate_version in JSON 2021-03-01 00:30:40 -05:00
html Don't share id_map and deref_id_map 2021-03-05 19:40:54 -08:00
json Remove krate.version; fix crate_version in JSON 2021-03-01 00:30:40 -05:00
passes Use cache access levels 2021-03-04 21:22:44 +01:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Always compile rustdoc with debug logging enabled when download-rustc is set 2021-02-28 22:01:45 -05:00
config.rs Rollup merge of #81223 - GuillaumeGomez:generate-redirect-map, r=jyn514 2021-03-03 16:27:38 +09:00
core.rs Rollup merge of #80527 - jyn514:rustdoc-lints, r=GuillaumeGomez 2021-03-04 20:01:01 +09:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Move lint machinery into a separate file 2021-03-01 19:29:15 -05:00
doctree.rs Move StructType to clean, remove it from Unions, make JSON output whether something is a union 2021-01-20 16:46:34 -05:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs Put clean::Trait extra information into a new struct to make it more coherent 2021-02-23 21:58:16 +01:00
lib.rs Rollup merge of #80527 - jyn514:rustdoc-lints, r=GuillaumeGomez 2021-03-04 20:01:01 +09:00
lint.rs Address review comments 2021-03-01 19:29:15 -05:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Replace under-used ImplPolarity enum with a boolean 2021-01-09 14:59:37 +01:00
visit_ast.rs Pass TyCtxt directly instead of DocContext in librustdoc::visit_ast::inherits_doc_hidden 2021-03-04 21:22:43 +01:00
visit_lib.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00

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