]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/visit_lib.rs
Rollup merge of #93758 - nnethercote:improve-folding-comments, r=BoxyUwU
[rust.git] / src / librustdoc / visit_lib.rs
index ce94f06d574e17c2407a017925c4d17d3fd7d697..5bcec779bc0e7d130be976f1cb17ba9d660b13ed 100644 (file)
@@ -53,7 +53,7 @@ fn update(&mut self, did: DefId, level: Option<AccessLevel>) -> Option<AccessLev
             return;
         }
 
-        for item in self.tcx.item_children(def_id).iter() {
+        for item in self.tcx.module_children(def_id).iter() {
             if let Some(def_id) = item.res.opt_def_id() {
                 if self.tcx.def_key(def_id).parent.map_or(false, |d| d == def_id.index)
                     || item.vis.is_public()