rustdoc: Cache preprocessed markdown links
This commit is contained in:
parent
72ed101428
commit
de287df862
4 changed files with 68 additions and 45 deletions
|
@ -29,13 +29,13 @@ use crate::clean::inline::build_external_trait;
|
|||
use crate::clean::{self, ItemId, TraitWithExtraInfo};
|
||||
use crate::config::{Options as RustdocOptions, OutputFormat, RenderOptions};
|
||||
use crate::formats::cache::Cache;
|
||||
use crate::html::markdown::MarkdownLink;
|
||||
use crate::passes::collect_intra_doc_links::PreprocessedMarkdownLink;
|
||||
use crate::passes::{self, Condition::*};
|
||||
|
||||
crate use rustc_session::config::{DebuggingOptions, Input, Options};
|
||||
|
||||
crate struct ResolverCaches {
|
||||
crate markdown_links: Option<FxHashMap<String, Vec<MarkdownLink>>>,
|
||||
crate markdown_links: Option<FxHashMap<String, Vec<PreprocessedMarkdownLink>>>,
|
||||
crate doc_link_resolutions: FxHashMap<(Symbol, Namespace, DefId), Option<Res<NodeId>>>,
|
||||
/// Traits in scope for a given module.
|
||||
/// See `collect_intra_doc_links::traits_implemented_by` for more details.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue