@@ -196,9 +196,9 @@ provide! { <'tcx> tcx, def_id, other, cdata,
196
196
let r = * cdata. dep_kind. lock( ) ;
197
197
r
198
198
}
199
- item_children => {
199
+ module_children => {
200
200
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) ;
202
202
tcx. arena. alloc_slice( & result)
203
203
}
204
204
defined_lib_features => { cdata. get_lib_features( tcx) }
@@ -342,7 +342,7 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
342
342
} ;
343
343
344
344
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 ( ) {
346
346
add_child ( bfs_queue, child, def) ;
347
347
}
348
348
}
@@ -388,9 +388,9 @@ impl CStore {
388
388
self . get_crate_data ( def. krate ) . get_visibility ( def. index )
389
389
}
390
390
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 > {
392
392
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 (
394
394
def_id. index ,
395
395
|child| result. push ( child) ,
396
396
sess,
0 commit comments