]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/visit_ast.rs
Unify generation of section on "All items" page with all other pages
[rust.git] / src / librustdoc / visit_ast.rs
index c27ac0ac40e1dbe200e196510df111b12522da1e..e6cef4a326ac0ac066723ed6f941224f56a7ba77 100644 (file)
@@ -230,7 +230,7 @@ fn maybe_inline_local(
                     } else {
                         // All items need to be handled here in case someone wishes to link
                         // to them with intra-doc links
-                        self.cx.cache.access_levels.map.insert(did, AccessLevel::Public);
+                        self.cx.cache.access_levels.set_access_level(did, AccessLevel::Public);
                     }
                 }
             }