File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2616,9 +2616,8 @@ fn internalize_symbols(cx: &SharedCrateContext, reachable: &HashSet<&str>) {
26162616// when using MSVC linker. We do this only for data, as linker can fix up
26172617// code references on its own.
26182618// See #26591, #27438
2619- fn create_imps ( cx : & SharedCrateContext , _reachable : & HashSet < & str > ) {
2619+ fn create_imps ( cx : & SharedCrateContext ) {
26202620 unsafe {
2621-
26222621 for ccx in cx. iter ( ) {
26232622 let exported: Vec < _ > = iter_globals ( ccx. llmod ( ) )
26242623 . filter ( |& val| llvm:: LLVMGetLinkage ( val) == llvm:: ExternalLinkage as c_uint &&
@@ -2857,9 +2856,8 @@ pub fn trans_crate(tcx: &ty::ctxt, analysis: ty::CrateAnalysis) -> CrateTranslat
28572856 }
28582857
28592858 if sess. target . target . options . is_like_msvc &&
2860- sess. crate_types . borrow ( ) . iter ( ) . any ( |ct| * ct == config:: CrateTypeRlib ||
2861- * ct == config:: CrateTypeStaticlib ) {
2862- create_imps ( & shared_ccx, & reachable_symbols. iter ( ) . map ( |x| & x[ ..] ) . collect ( ) ) ;
2859+ sess. crate_types . borrow ( ) . iter ( ) . any ( |ct| * ct == config:: CrateTypeRlib ) {
2860+ create_imps ( & shared_ccx) ;
28632861 }
28642862
28652863 let metadata_module = ModuleTranslation {
You can’t perform that action at this time.
0 commit comments