@@ -23,7 +23,7 @@ use rustc_hir::hir_id::HirId;
23
23
use rustc_hir:: lang_items:: LangItem ;
24
24
use rustc_infer:: infer:: TyCtxtInferExt ;
25
25
use rustc_middle:: {
26
- hir :: exports :: Export ,
26
+ metadata :: ModChild ,
27
27
ty:: {
28
28
subst:: { InternalSubsts , Subst } ,
29
29
AssocItem , GenericParamDef , GenericParamDefKind , Generics , TraitRef , Ty , TyCtxt , TyKind ,
@@ -67,7 +67,7 @@ pub fn run_analysis(tcx: TyCtxt, old: DefId, new: DefId) -> ChangeSet {
67
67
}
68
68
69
69
// Get the visibility of the inner item, given the outer item's visibility.
70
- fn get_vis ( outer_vis : Visibility , def : Export ) -> Visibility {
70
+ fn get_vis ( outer_vis : Visibility , def : ModChild ) -> Visibility {
71
71
if outer_vis == Public {
72
72
def. vis
73
73
} else {
@@ -85,7 +85,7 @@ pub fn run_traversal(tcx: TyCtxt, new: DefId) {
85
85
86
86
// Pull a module from the queue, with its global visibility.
87
87
while let Some ( ( new_def_id, idents, new_vis) ) = mod_queue. pop_front ( ) {
88
- for item in tcx. item_children ( new_def_id) . iter ( ) . copied ( ) {
88
+ for item in tcx. module_children ( new_def_id) . iter ( ) . copied ( ) {
89
89
let n_vis = get_vis ( new_vis, item) ;
90
90
match item. res {
91
91
Def ( Mod , n_def_id) => {
@@ -147,8 +147,8 @@ fn diff_structure<'tcx>(
147
147
// Pull a matched module pair from the queue, with the modules' global visibility.
148
148
while let Some ( ( old_def_id, new_def_id, old_vis, new_vis) ) = mod_queue. pop_front ( ) {
149
149
children. add (
150
- tcx. item_children ( old_def_id) . to_vec ( ) , // TODO: clean up
151
- tcx. item_children ( new_def_id) . to_vec ( ) ,
150
+ tcx. module_children ( old_def_id) . to_vec ( ) , // TODO: clean up
151
+ tcx. module_children ( new_def_id) . to_vec ( ) ,
152
152
) ;
153
153
154
154
for items in children. drain ( ) {
0 commit comments