rust/src/librustdoc/passes
Yuki Okushi 3d762a7f36
Rollup merge of #82402 - jyn514:module-cache-refcell, r=GuillaumeGomez
Remove RefCell around `module_trait_cache`

This builds on https://github.com/rust-lang/rust/pull/82018 and should not be merged before.

## Don't require a `DocContext` for `report_diagnostic`

This is needed for the next commit, which needs mutable access to the `cx` from
within the `decorate` closure.

- Change `as_local_hir_id` to an associated function, since it only
  needs a `TyCtxt`
- Change `source_span_for_markdown_range` to only take a `TyCtxt`

##  Remove RefCell around module_trait_cache

This is mostly just changing lots of functions from `&DocContext` to `&mut DocContext`.
2021-03-07 10:41:11 +09:00
..
unindent_comments Simplify docfragment transformation in unindent tests 2021-01-02 19:16:27 +01:00
calculate_doc_coverage.rs Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make transition over hir::ItemKind simpler 2021-03-05 16:04:24 +01:00
check_code_block_syntax.rs Don't require a DocContext for report_diagnostic 2021-03-04 11:30:38 -05:00
collect_intra_doc_links.rs Remove RefCell around module_trait_cache 2021-03-04 11:53:40 -05:00
collect_trait_impls.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00
doc_test_lints.rs Rollup merge of #82402 - jyn514:module-cache-refcell, r=GuillaumeGomez 2021-03-07 10:41:11 +09:00
html_tags.rs Remove RefCell around module_trait_cache 2021-03-04 11:53:40 -05:00
mod.rs Don't require a DocContext for report_diagnostic 2021-03-04 11:30:38 -05:00
non_autolinks.rs Don't require a DocContext for report_diagnostic 2021-03-04 11:30:38 -05:00
propagate_doc_cfg.rs Take &mut DocContext in passes 2021-02-16 20:58:38 -05:00
strip_hidden.rs Take &mut DocContext in passes 2021-02-16 20:58:38 -05:00
strip_priv_imports.rs Take &mut DocContext in passes 2021-02-16 20:58:38 -05:00
strip_private.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00
stripper.rs Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make transition over hir::ItemKind simpler 2021-03-05 16:04:24 +01:00
unindent_comments.rs Take &mut DocContext in passes 2021-02-16 20:58:38 -05:00