]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/passes/collect_intra_doc_links.rs
rustdoc: Sligthly optimize `Attributes` construction and processing before doc link...
[rust.git] / src / librustdoc / passes / collect_intra_doc_links.rs
index c9fc14d5f71a4e1b7f6a3284deca6ce2022930ec..42e87f3f9610b1b54cb855fce0679998e7cce810 100644 (file)
@@ -1050,7 +1050,7 @@ fn visit_item(&mut self, item: &Item) {
         // In the presence of re-exports, this is not the same as the module of the item.
         // Rather than merging all documentation into one, resolve it one attribute at a time
         // so we know which module it came from.
-        for (parent_module, doc) in item.attrs.collapsed_doc_value_by_module_level() {
+        for (parent_module, doc) in item.attrs.prepare_to_doc_link_resolution() {
             if !may_have_doc_links(&doc) {
                 continue;
             }