@@ -15,7 +15,7 @@ pub struct RPathConfig<'a> {
1515 pub get_install_prefix_lib_path : & ' a mut dyn FnMut ( ) -> PathBuf ,
1616}
1717
18- pub fn get_rpath_flags ( config : & mut RPathConfig ) -> Vec < String > {
18+ pub fn get_rpath_flags ( config : & mut RPathConfig < ' _ > ) -> Vec < String > {
1919 // No rpath on windows
2020 if !config. has_rpath {
2121 return Vec :: new ( ) ;
@@ -52,7 +52,7 @@ fn rpaths_to_flags(rpaths: &[String]) -> Vec<String> {
5252 ret
5353}
5454
55- fn get_rpaths ( config : & mut RPathConfig , libs : & [ PathBuf ] ) -> Vec < String > {
55+ fn get_rpaths ( config : & mut RPathConfig < ' _ > , libs : & [ PathBuf ] ) -> Vec < String > {
5656 debug ! ( "output: {:?}" , config. out_filename. display( ) ) ;
5757 debug ! ( "libs:" ) ;
5858 for libpath in libs {
@@ -86,12 +86,12 @@ fn get_rpaths(config: &mut RPathConfig, libs: &[PathBuf]) -> Vec<String> {
8686 rpaths
8787}
8888
89- fn get_rpaths_relative_to_output ( config : & mut RPathConfig ,
89+ fn get_rpaths_relative_to_output ( config : & mut RPathConfig < ' _ > ,
9090 libs : & [ PathBuf ] ) -> Vec < String > {
9191 libs. iter ( ) . map ( |a| get_rpath_relative_to_output ( config, a) ) . collect ( )
9292}
9393
94- fn get_rpath_relative_to_output ( config : & mut RPathConfig , lib : & Path ) -> String {
94+ fn get_rpath_relative_to_output ( config : & mut RPathConfig < ' _ > , lib : & Path ) -> String {
9595 // Mac doesn't appear to support $ORIGIN
9696 let prefix = if config. is_like_osx {
9797 "@loader_path"
@@ -127,7 +127,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option<PathBuf> {
127127 } else {
128128 let mut ita = path. components ( ) ;
129129 let mut itb = base. components ( ) ;
130- let mut comps: Vec < Component > = vec ! [ ] ;
130+ let mut comps: Vec < Component < ' _ > > = vec ! [ ] ;
131131 loop {
132132 match ( ita. next ( ) , itb. next ( ) ) {
133133 ( None , None ) => break ,
@@ -154,7 +154,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option<PathBuf> {
154154}
155155
156156
157- fn get_install_prefix_rpath ( config : & mut RPathConfig ) -> String {
157+ fn get_install_prefix_rpath ( config : & mut RPathConfig < ' _ > ) -> String {
158158 let path = ( config. get_install_prefix_lib_path ) ( ) ;
159159 let path = env:: current_dir ( ) . unwrap ( ) . join ( & path) ;
160160 // FIXME (#9639): This needs to handle non-utf8 paths
0 commit comments