@@ -196,9 +196,9 @@ provide! { <'tcx> tcx, def_id, other, cdata,
196196 let r = * cdata. dep_kind. lock( ) ;
197197 r
198198 }
199- item_children => {
199+ module_children => {
200200 let mut result = SmallVec :: <[ _; 8 ] >:: new( ) ;
201- cdata. each_child_of_item ( def_id. index, |child| result. push( child) , tcx. sess) ;
201+ cdata. for_each_module_child ( def_id. index, |child| result. push( child) , tcx. sess) ;
202202 tcx. arena. alloc_slice( & result)
203203 }
204204 defined_lib_features => { cdata. get_lib_features( tcx) }
@@ -342,7 +342,7 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
342342 } ;
343343
344344 while let Some ( def) = bfs_queue. pop_front ( ) {
345- for child in tcx. item_children ( def) . iter ( ) {
345+ for child in tcx. module_children ( def) . iter ( ) {
346346 add_child ( bfs_queue, child, def) ;
347347 }
348348 }
@@ -388,9 +388,9 @@ impl CStore {
388388 self . get_crate_data ( def. krate ) . get_visibility ( def. index )
389389 }
390390
391- pub fn item_children_untracked ( & self , def_id : DefId , sess : & Session ) -> Vec < Export > {
391+ pub fn module_children_untracked ( & self , def_id : DefId , sess : & Session ) -> Vec < Export > {
392392 let mut result = vec ! [ ] ;
393- self . get_crate_data ( def_id. krate ) . each_child_of_item (
393+ self . get_crate_data ( def_id. krate ) . for_each_module_child (
394394 def_id. index ,
395395 |child| result. push ( child) ,
396396 sess,
0 commit comments