@@ -26,8 +26,8 @@ use crate::type_of::LayoutLlvmExt;
2626use crate :: va_arg:: emit_va_arg;
2727use crate :: value:: Value ;
2828
29- fn get_simple_intrinsic < ' ll > (
30- cx : & CodegenCx < ' ll , ' _ > ,
29+ fn get_simple_intrinsic < ' ll : ' tcx , ' tcx > (
30+ cx : & CodegenCx < ' ll , ' tcx > ,
3131 name : Symbol ,
3232) -> Option < ( & ' ll Type , & ' ll Value ) > {
3333 let llvm_name = match name {
@@ -153,7 +153,7 @@ fn get_simple_intrinsic<'ll>(
153153 Some ( cx. get_intrinsic ( llvm_name) )
154154}
155155
156- impl < ' ll , ' tcx > IntrinsicCallBuilderMethods < ' tcx > for Builder < ' _ , ' ll , ' tcx > {
156+ impl < ' ll : ' tcx , ' tcx > IntrinsicCallBuilderMethods < ' tcx > for Builder < ' _ , ' ll , ' tcx > {
157157 fn codegen_intrinsic_call (
158158 & mut self ,
159159 instance : ty:: Instance < ' tcx > ,
@@ -677,8 +677,8 @@ impl<'ll, 'tcx> IntrinsicCallBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> {
677677 }
678678}
679679
680- fn catch_unwind_intrinsic < ' ll > (
681- bx : & mut Builder < ' _ , ' ll , ' _ > ,
680+ fn catch_unwind_intrinsic < ' a , ' ll : ' tcx , ' tcx > (
681+ bx : & mut Builder < ' a , ' ll , ' tcx > ,
682682 try_func : & ' ll Value ,
683683 data : & ' ll Value ,
684684 catch_func : & ' ll Value ,
@@ -709,8 +709,8 @@ fn catch_unwind_intrinsic<'ll>(
709709// instructions are meant to work for all targets, as of the time of this
710710// writing, however, LLVM does not recommend the usage of these new instructions
711711// as the old ones are still more optimized.
712- fn codegen_msvc_try < ' ll > (
713- bx : & mut Builder < ' _ , ' ll , ' _ > ,
712+ fn codegen_msvc_try < ' a , ' ll : ' tcx , ' tcx > (
713+ bx : & mut Builder < ' a , ' ll , ' tcx > ,
714714 try_func : & ' ll Value ,
715715 data : & ' ll Value ,
716716 catch_func : & ' ll Value ,
@@ -856,8 +856,8 @@ fn codegen_msvc_try<'ll>(
856856}
857857
858858// WASM's definition of the `rust_try` function.
859- fn codegen_wasm_try < ' ll > (
860- bx : & mut Builder < ' _ , ' ll , ' _ > ,
859+ fn codegen_wasm_try < ' ll : ' tcx , ' tcx > (
860+ bx : & mut Builder < ' _ , ' ll , ' tcx > ,
861861 try_func : & ' ll Value ,
862862 data : & ' ll Value ,
863863 catch_func : & ' ll Value ,
@@ -940,8 +940,8 @@ fn codegen_wasm_try<'ll>(
940940// function calling it, and that function may already have other personality
941941// functions in play. By calling a shim we're guaranteed that our shim will have
942942// the right personality function.
943- fn codegen_gnu_try < ' ll > (
944- bx : & mut Builder < ' _ , ' ll , ' _ > ,
943+ fn codegen_gnu_try < ' ll : ' tcx , ' tcx > (
944+ bx : & mut Builder < ' _ , ' ll , ' tcx > ,
945945 try_func : & ' ll Value ,
946946 data : & ' ll Value ,
947947 catch_func : & ' ll Value ,
@@ -999,8 +999,8 @@ fn codegen_gnu_try<'ll>(
999999// Variant of codegen_gnu_try used for emscripten where Rust panics are
10001000// implemented using C++ exceptions. Here we use exceptions of a specific type
10011001// (`struct rust_panic`) to represent Rust panics.
1002- fn codegen_emcc_try < ' ll > (
1003- bx : & mut Builder < ' _ , ' ll , ' _ > ,
1002+ fn codegen_emcc_try < ' ll : ' tcx , ' tcx > (
1003+ bx : & mut Builder < ' _ , ' ll , ' tcx > ,
10041004 try_func : & ' ll Value ,
10051005 data : & ' ll Value ,
10061006 catch_func : & ' ll Value ,
@@ -1081,7 +1081,7 @@ fn codegen_emcc_try<'ll>(
10811081
10821082// Helper function to give a Block to a closure to codegen a shim function.
10831083// This is currently primarily used for the `try` intrinsic functions above.
1084- fn gen_fn < ' ll , ' tcx > (
1084+ fn gen_fn < ' ll : ' tcx , ' tcx > (
10851085 cx : & CodegenCx < ' ll , ' tcx > ,
10861086 name : & str ,
10871087 rust_fn_sig : ty:: PolyFnSig < ' tcx > ,
@@ -1104,7 +1104,7 @@ fn gen_fn<'ll, 'tcx>(
11041104// catch exceptions.
11051105//
11061106// This function is only generated once and is then cached.
1107- fn get_rust_try_fn < ' ll , ' tcx > (
1107+ fn get_rust_try_fn < ' ll : ' tcx , ' tcx > (
11081108 cx : & CodegenCx < ' ll , ' tcx > ,
11091109 codegen : & mut dyn FnMut ( Builder < ' _ , ' ll , ' tcx > ) ,
11101110) -> ( & ' ll Type , & ' ll Value ) {
@@ -1150,7 +1150,7 @@ fn get_rust_try_fn<'ll, 'tcx>(
11501150 rust_try
11511151}
11521152
1153- fn generic_simd_intrinsic < ' ll , ' tcx > (
1153+ fn generic_simd_intrinsic < ' ll : ' tcx , ' tcx > (
11541154 bx : & mut Builder < ' _ , ' ll , ' tcx > ,
11551155 name : Symbol ,
11561156 callee_ty : Ty < ' tcx > ,
@@ -1518,7 +1518,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
15181518 }
15191519 }
15201520
1521- fn simd_simple_float_intrinsic < ' ll , ' tcx > (
1521+ fn simd_simple_float_intrinsic < ' ll : ' tcx , ' tcx > (
15221522 name : Symbol ,
15231523 in_elem : Ty < ' _ > ,
15241524 in_ty : Ty < ' _ > ,
@@ -1634,7 +1634,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
16341634 }
16351635 }
16361636
1637- fn llvm_vector_ty < ' ll > ( cx : & CodegenCx < ' ll , ' _ > , elem_ty : Ty < ' _ > , vec_len : u64 ) -> & ' ll Type {
1637+ fn llvm_vector_ty < ' ll : ' tcx , ' tcx > ( cx : & CodegenCx < ' ll , ' tcx > , elem_ty : Ty < ' _ > , vec_len : u64 ) -> & ' ll Type {
16381638 let elem_ty = match * elem_ty. kind ( ) {
16391639 ty:: Int ( v) => cx. type_int_from_ty ( v) ,
16401640 ty:: Uint ( v) => cx. type_uint_from_ty ( v) ,
0 commit comments