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>) {
2616
2616
// when using MSVC linker. We do this only for data, as linker can fix up
2617
2617
// code references on its own.
2618
2618
// See #26591, #27438
2619
- fn create_imps ( cx : & SharedCrateContext , _reachable : & HashSet < & str > ) {
2619
+ fn create_imps ( cx : & SharedCrateContext ) {
2620
2620
unsafe {
2621
-
2622
2621
for ccx in cx. iter ( ) {
2623
2622
let exported: Vec < _ > = iter_globals ( ccx. llmod ( ) )
2624
2623
. 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
2857
2856
}
2858
2857
2859
2858
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) ;
2863
2861
}
2864
2862
2865
2863
let metadata_module = ModuleTranslation {
You can’t perform that action at this time.
0 commit comments