@@ -1081,11 +1081,11 @@ fn codegen_emcc_try<'ll>(
1081
1081
1082
1082
// Helper function to give a Block to a closure to codegen a shim function.
1083
1083
// This is currently primarily used for the `try` intrinsic functions above.
1084
- fn gen_fn < ' ll , ' tcx > (
1085
- cx : & CodegenCx < ' ll , ' tcx > ,
1084
+ fn gen_fn < ' a , ' ll , ' tcx > (
1085
+ cx : & ' a CodegenCx < ' ll , ' tcx > ,
1086
1086
name : & str ,
1087
1087
rust_fn_sig : ty:: PolyFnSig < ' tcx > ,
1088
- codegen : & mut dyn FnMut ( Builder < ' _ , ' ll , ' tcx > ) ,
1088
+ codegen : & mut dyn FnMut ( Builder < ' a , ' ll , ' tcx > ) ,
1089
1089
) -> ( & ' ll Type , & ' ll Value ) {
1090
1090
let fn_abi = cx. fn_abi_of_fn_ptr ( rust_fn_sig, ty:: List :: empty ( ) ) ;
1091
1091
let llty = fn_abi. llvm_type ( cx) ;
@@ -1104,9 +1104,9 @@ fn gen_fn<'ll, 'tcx>(
1104
1104
// catch exceptions.
1105
1105
//
1106
1106
// This function is only generated once and is then cached.
1107
- fn get_rust_try_fn < ' ll , ' tcx > (
1108
- cx : & CodegenCx < ' ll , ' tcx > ,
1109
- codegen : & mut dyn FnMut ( Builder < ' _ , ' ll , ' tcx > ) ,
1107
+ fn get_rust_try_fn < ' a , ' ll , ' tcx > (
1108
+ cx : & ' a CodegenCx < ' ll , ' tcx > ,
1109
+ codegen : & mut dyn FnMut ( Builder < ' a , ' ll , ' tcx > ) ,
1110
1110
) -> ( & ' ll Type , & ' ll Value ) {
1111
1111
if let Some ( llfn) = cx. rust_try_fn . get ( ) {
1112
1112
return llfn;
0 commit comments