@@ -71,8 +71,8 @@ pub fn ensure_removed(dcx: &DiagCtxt, path: &Path) {
7171
7272/// Performs the linkage portion of the compilation phase. This will generate all
7373/// of the requested outputs for this compilation session.
74- pub fn link_binary < ' a > (
75- sess : & ' a Session ,
74+ pub fn link_binary (
75+ sess : & Session ,
7676 archive_builder_builder : & dyn ArchiveBuilderBuilder ,
7777 codegen_results : & CodegenResults ,
7878 outputs : & OutputFilenames ,
@@ -464,9 +464,9 @@ fn link_rlib<'a>(
464464/// then the CodegenResults value contains one NativeLib instance for each block. However, the
465465/// linker appears to expect only a single import library for each library used, so we need to
466466/// collate the symbols together by library name before generating the import libraries.
467- fn collate_raw_dylibs < ' a , ' b > (
468- sess : & ' a Session ,
469- used_libraries : impl IntoIterator < Item = & ' b NativeLib > ,
467+ fn collate_raw_dylibs < ' a > (
468+ sess : & Session ,
469+ used_libraries : impl IntoIterator < Item = & ' a NativeLib > ,
470470) -> Result < Vec < ( String , Vec < DllImport > ) > , ErrorGuaranteed > {
471471 // Use index maps to preserve original order of imports and libraries.
472472 let mut dylib_table = FxIndexMap :: < String , FxIndexMap < Symbol , & DllImport > > :: default ( ) ;
@@ -513,8 +513,8 @@ fn collate_raw_dylibs<'a, 'b>(
513513///
514514/// There's no need to include metadata in a static archive, so ensure to not link in the metadata
515515/// object file (and also don't prepare the archive with a metadata file).
516- fn link_staticlib < ' a > (
517- sess : & ' a Session ,
516+ fn link_staticlib (
517+ sess : & Session ,
518518 archive_builder_builder : & dyn ArchiveBuilderBuilder ,
519519 codegen_results : & CodegenResults ,
520520 out_filename : & Path ,
@@ -626,11 +626,7 @@ fn link_staticlib<'a>(
626626
627627/// Use `thorin` (rust implementation of a dwarf packaging utility) to link DWARF objects into a
628628/// DWARF package.
629- fn link_dwarf_object < ' a > (
630- sess : & ' a Session ,
631- cg_results : & CodegenResults ,
632- executable_out_filename : & Path ,
633- ) {
629+ fn link_dwarf_object ( sess : & Session , cg_results : & CodegenResults , executable_out_filename : & Path ) {
634630 let mut dwp_out_filename = executable_out_filename. to_path_buf ( ) . into_os_string ( ) ;
635631 dwp_out_filename. push ( ".dwp" ) ;
636632 debug ! ( ?dwp_out_filename, ?executable_out_filename) ;
@@ -734,8 +730,8 @@ fn link_dwarf_object<'a>(
734730///
735731/// This will invoke the system linker/cc to create the resulting file. This links to all upstream
736732/// files as well.
737- fn link_natively < ' a > (
738- sess : & ' a Session ,
733+ fn link_natively (
734+ sess : & Session ,
739735 archive_builder_builder : & dyn ArchiveBuilderBuilder ,
740736 crate_type : CrateType ,
741737 out_filename : & Path ,
@@ -1099,8 +1095,8 @@ fn link_natively<'a>(
10991095 Ok ( ( ) )
11001096}
11011097
1102- fn strip_symbols_with_external_utility < ' a > (
1103- sess : & ' a Session ,
1098+ fn strip_symbols_with_external_utility (
1099+ sess : & Session ,
11041100 util : & str ,
11051101 out_filename : & Path ,
11061102 option : Option < & str > ,
@@ -2108,10 +2104,10 @@ fn add_rpath_args(
21082104/// to the linking process as a whole.
21092105/// Order-independent options may still override each other in order-dependent fashion,
21102106/// e.g `--foo=yes --foo=no` may be equivalent to `--foo=no`.
2111- fn linker_with_args < ' a > (
2107+ fn linker_with_args (
21122108 path : & Path ,
21132109 flavor : LinkerFlavor ,
2114- sess : & ' a Session ,
2110+ sess : & Session ,
21152111 archive_builder_builder : & dyn ArchiveBuilderBuilder ,
21162112 crate_type : CrateType ,
21172113 tmpdir : & Path ,
@@ -2643,9 +2639,9 @@ fn add_local_native_libraries(
26432639 ) ;
26442640}
26452641
2646- fn add_upstream_rust_crates < ' a > (
2642+ fn add_upstream_rust_crates (
26472643 cmd : & mut dyn Linker ,
2648- sess : & ' a Session ,
2644+ sess : & Session ,
26492645 archive_builder_builder : & dyn ArchiveBuilderBuilder ,
26502646 codegen_results : & CodegenResults ,
26512647 crate_type : CrateType ,
@@ -2782,7 +2778,7 @@ fn add_upstream_native_libraries(
27822778// file generated by the MSVC linker. See https://github.com/rust-lang/rust/issues/112586.
27832779//
27842780// The returned path will always have `fix_windows_verbatim_for_gcc()` applied to it.
2785- fn rehome_sysroot_lib_dir < ' a > ( sess : & ' a Session , lib_dir : & Path ) -> PathBuf {
2781+ fn rehome_sysroot_lib_dir ( sess : & Session , lib_dir : & Path ) -> PathBuf {
27862782 let sysroot_lib_path = sess. target_filesearch ( PathKind :: All ) . get_lib_path ( ) ;
27872783 let canonical_sysroot_lib_path =
27882784 { try_canonicalize ( & sysroot_lib_path) . unwrap_or_else ( |_| sysroot_lib_path. clone ( ) ) } ;
@@ -2815,9 +2811,9 @@ fn rehome_sysroot_lib_dir<'a>(sess: &'a Session, lib_dir: &Path) -> PathBuf {
28152811// Note, however, that if we're not doing LTO we can just pass the rlib
28162812// blindly to the linker (fast) because it's fine if it's not actually
28172813// included as we're at the end of the dependency chain.
2818- fn add_static_crate < ' a > (
2814+ fn add_static_crate (
28192815 cmd : & mut dyn Linker ,
2820- sess : & ' a Session ,
2816+ sess : & Session ,
28212817 archive_builder_builder : & dyn ArchiveBuilderBuilder ,
28222818 codegen_results : & CodegenResults ,
28232819 tmpdir : & Path ,
0 commit comments