@@ -24,7 +24,7 @@ pub(crate) fn maybe_create_entry_wrapper(
24
24
} ;
25
25
26
26
if main_def_id. is_local ( ) {
27
- let instance = Instance :: mono ( tcx, main_def_id) . polymorphize ( tcx ) ;
27
+ let instance = Instance :: mono ( tcx, main_def_id) ;
28
28
if module. get_name ( tcx. symbol_name ( instance) . name ) . is_none ( ) {
29
29
return ;
30
30
}
@@ -75,7 +75,7 @@ pub(crate) fn maybe_create_entry_wrapper(
75
75
}
76
76
} ;
77
77
78
- let instance = Instance :: mono ( tcx, rust_main_def_id) . polymorphize ( tcx ) ;
78
+ let instance = Instance :: mono ( tcx, rust_main_def_id) ;
79
79
80
80
let main_name = tcx. symbol_name ( instance) . name ;
81
81
let main_sig = get_function_sig ( tcx, m. target_config ( ) . default_call_conv , instance) ;
@@ -117,8 +117,7 @@ pub(crate) fn maybe_create_entry_wrapper(
117
117
report. def_id ,
118
118
tcx. mk_args ( & [ GenericArg :: from ( main_ret_ty) ] ) ,
119
119
DUMMY_SP ,
120
- )
121
- . polymorphize ( tcx) ;
120
+ ) ;
122
121
123
122
let report_name = tcx. symbol_name ( report) . name ;
124
123
let report_sig = get_function_sig ( tcx, m. target_config ( ) . default_call_conv , report) ;
@@ -143,8 +142,7 @@ pub(crate) fn maybe_create_entry_wrapper(
143
142
start_def_id,
144
143
tcx. mk_args ( & [ main_ret_ty. into ( ) ] ) ,
145
144
DUMMY_SP ,
146
- )
147
- . polymorphize ( tcx) ;
145
+ ) ;
148
146
let start_func_id = import_function ( tcx, m, start_instance) ;
149
147
150
148
let main_val = bcx. ins ( ) . func_addr ( m. target_config ( ) . pointer_type ( ) , main_func_ref) ;
0 commit comments