rust/src/librustdoc
Nicholas Nethercote 661f99ba03 Overhaul the intravisit::Map trait.
First of all, note that `Map` has three different relevant meanings.
- The `intravisit::Map` trait.
- The `map::Map` struct.
- The `NestedFilter::Map` associated type.

The `intravisit::Map` trait is impl'd twice.
- For `!`, where the methods are all unreachable.
- For `map::Map`, which gets HIR stuff from the `TyCtxt`.

As part of getting rid of `map::Map`, this commit changes `impl
intravisit::Map for map::Map` to `impl intravisit::Map for TyCtxt`. It's
fairly straightforward except various things are renamed, because the
existing names would no longer have made sense.

- `trait intravisit::Map` becomes `trait intravisit::HirTyCtxt`, so named
  because it gets some HIR stuff from a `TyCtxt`.
- `NestedFilter::Map` assoc type becomes `NestedFilter::MaybeTyCtxt`,
  because it's always `!` or `TyCtxt`.
- `Visitor::nested_visit_map` becomes `Visitor::maybe_tcx`.

I deliberately made the new trait and associated type names different to
avoid the old `type Map: Map` situation, which I found confusing. We now
have `type MaybeTyCtxt: HirTyCtxt`.
2025-02-17 13:21:35 +11:00
..
clean Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
doctest Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
formats allowed_through_unstable_modules: support showing a deprecation message when the unstable module name is used 2025-01-15 09:41:33 +01:00
html Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
json Move some Map methods onto TyCtxt. 2025-02-17 13:21:02 +11:00
passes Move some Map methods onto TyCtxt. 2025-02-17 13:21:02 +11:00
theme rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
build.rs Auto merge of #136253 - notriddle:notriddle/aot-minify, r=GuillaumeGomez 2025-02-05 18:28:16 +00:00
Cargo.toml Rollup merge of #136694 - GuillaumeGomez:update-minifier, r=notriddle 2025-02-09 19:44:51 +01:00
config.rs Auto merge of #136253 - notriddle:notriddle/aot-minify, r=GuillaumeGomez 2025-02-05 18:28:16 +00:00
core.rs Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
display.rs librustdoc: create MaybeDisplay helper for Option<T: Display> types 2025-02-14 14:49:59 +00:00
docfs.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
doctest.rs Correctly escape hashtags when running invalid_rust_codeblocks lint 2025-02-12 19:46:07 +01:00
error.rs Fix clippy lints 2024-08-29 12:14:41 +02:00
externalfiles.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
fold.rs Rename TyMethodItem -> RequiredMethodItem 2024-12-19 10:48:51 -08:00
lib.rs librustdoc: create MaybeDisplay helper for Option<T: Display> types 2025-02-14 14:49:59 +00:00
lint.rs Fix new clippy lints 2024-11-28 03:05:43 +01:00
markdown.rs rustdoc: Document markdown module. 2024-10-19 13:37:40 +00:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
rinja.toml Replace askama with rinja 2024-07-23 11:19:55 +02:00
scrape_examples.rs Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
theme.rs Fix new clippy lints 2024-11-28 03:05:43 +01:00
visit.rs Rename TyMethodItem -> RequiredMethodItem 2024-12-19 10:48:51 -08:00
visit_ast.rs Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
visit_lib.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00

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