File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,12 @@ pub(crate) fn maybe_create_entry_wrapper(
115
115
termination_trait,
116
116
)
117
117
. unwrap ( ) ;
118
- let report = Instance :: resolve (
118
+ let report = Instance :: expect_resolve (
119
119
tcx,
120
120
ParamEnv :: reveal_all ( ) ,
121
121
report. def_id ,
122
122
tcx. mk_args ( & [ GenericArg :: from ( main_ret_ty) ] ) ,
123
123
)
124
- . unwrap ( )
125
- . unwrap ( )
126
124
. polymorphize ( tcx) ;
127
125
128
126
let report_name = tcx. symbol_name ( report) . name ;
@@ -142,14 +140,12 @@ pub(crate) fn maybe_create_entry_wrapper(
142
140
}
143
141
} else if is_main_fn {
144
142
let start_def_id = tcx. require_lang_item ( LangItem :: Start , None ) ;
145
- let start_instance = Instance :: resolve (
143
+ let start_instance = Instance :: expect_resolve (
146
144
tcx,
147
145
ParamEnv :: reveal_all ( ) ,
148
146
start_def_id,
149
147
tcx. mk_args ( & [ main_ret_ty. into ( ) ] ) ,
150
148
)
151
- . unwrap ( )
152
- . unwrap ( )
153
149
. polymorphize ( tcx) ;
154
150
let start_func_id = import_function ( tcx, m, start_instance) ;
155
151
You can’t perform that action at this time.
0 commit comments