@@ -665,7 +665,6 @@ impl<'a, 'tcx> CrateMetadata {
665
665
def : def,
666
666
vis : ty:: Visibility :: Public ,
667
667
span : DUMMY_SP ,
668
- is_import : false ,
669
668
} ) ;
670
669
}
671
670
}
@@ -705,7 +704,6 @@ impl<'a, 'tcx> CrateMetadata {
705
704
ident : Ident :: from_interned_str ( self . item_name ( child_index) ) ,
706
705
vis : self . get_visibility ( child_index) ,
707
706
span : self . entry ( child_index) . span . decode ( ( self , sess) ) ,
708
- is_import : false ,
709
707
} ) ;
710
708
}
711
709
}
@@ -722,8 +720,7 @@ impl<'a, 'tcx> CrateMetadata {
722
720
( self . get_def ( child_index) , def_key. disambiguated_data . data . get_opt_name ( ) ) {
723
721
let ident = Ident :: from_interned_str ( name) ;
724
722
let vis = self . get_visibility ( child_index) ;
725
- let is_import = false ;
726
- callback ( def:: Export { def, ident, vis, span, is_import } ) ;
723
+ callback ( def:: Export { def, ident, vis, span } ) ;
727
724
// For non-re-export structs and variants add their constructors to children.
728
725
// Re-export lists automatically contain constructors when necessary.
729
726
match def {
@@ -734,7 +731,7 @@ impl<'a, 'tcx> CrateMetadata {
734
731
callback ( def:: Export {
735
732
def : ctor_def,
736
733
vis : self . get_visibility ( ctor_def_id. index ) ,
737
- ident, span, is_import ,
734
+ ident, span,
738
735
} ) ;
739
736
}
740
737
}
@@ -744,7 +741,7 @@ impl<'a, 'tcx> CrateMetadata {
744
741
let ctor_kind = self . get_ctor_kind ( child_index) ;
745
742
let ctor_def = Def :: VariantCtor ( def_id, ctor_kind) ;
746
743
let vis = self . get_visibility ( child_index) ;
747
- callback ( def:: Export { def : ctor_def, ident, vis, span, is_import } ) ;
744
+ callback ( def:: Export { def : ctor_def, ident, vis, span } ) ;
748
745
}
749
746
_ => { }
750
747
}
0 commit comments