@@ -15,7 +15,7 @@ pub struct RPathConfig<'a> {
15
15
pub get_install_prefix_lib_path : & ' a mut dyn FnMut ( ) -> PathBuf ,
16
16
}
17
17
18
- pub fn get_rpath_flags ( config : & mut RPathConfig ) -> Vec < String > {
18
+ pub fn get_rpath_flags ( config : & mut RPathConfig < ' _ > ) -> Vec < String > {
19
19
// No rpath on windows
20
20
if !config. has_rpath {
21
21
return Vec :: new ( ) ;
@@ -52,7 +52,7 @@ fn rpaths_to_flags(rpaths: &[String]) -> Vec<String> {
52
52
ret
53
53
}
54
54
55
- fn get_rpaths ( config : & mut RPathConfig , libs : & [ PathBuf ] ) -> Vec < String > {
55
+ fn get_rpaths ( config : & mut RPathConfig < ' _ > , libs : & [ PathBuf ] ) -> Vec < String > {
56
56
debug ! ( "output: {:?}" , config. out_filename. display( ) ) ;
57
57
debug ! ( "libs:" ) ;
58
58
for libpath in libs {
@@ -86,12 +86,12 @@ fn get_rpaths(config: &mut RPathConfig, libs: &[PathBuf]) -> Vec<String> {
86
86
rpaths
87
87
}
88
88
89
- fn get_rpaths_relative_to_output ( config : & mut RPathConfig ,
89
+ fn get_rpaths_relative_to_output ( config : & mut RPathConfig < ' _ > ,
90
90
libs : & [ PathBuf ] ) -> Vec < String > {
91
91
libs. iter ( ) . map ( |a| get_rpath_relative_to_output ( config, a) ) . collect ( )
92
92
}
93
93
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 {
95
95
// Mac doesn't appear to support $ORIGIN
96
96
let prefix = if config. is_like_osx {
97
97
"@loader_path"
@@ -127,7 +127,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option<PathBuf> {
127
127
} else {
128
128
let mut ita = path. components ( ) ;
129
129
let mut itb = base. components ( ) ;
130
- let mut comps: Vec < Component > = vec ! [ ] ;
130
+ let mut comps: Vec < Component < ' _ > > = vec ! [ ] ;
131
131
loop {
132
132
match ( ita. next ( ) , itb. next ( ) ) {
133
133
( None , None ) => break ,
@@ -154,7 +154,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option<PathBuf> {
154
154
}
155
155
156
156
157
- fn get_install_prefix_rpath ( config : & mut RPathConfig ) -> String {
157
+ fn get_install_prefix_rpath ( config : & mut RPathConfig < ' _ > ) -> String {
158
158
let path = ( config. get_install_prefix_lib_path ) ( ) ;
159
159
let path = env:: current_dir ( ) . unwrap ( ) . join ( & path) ;
160
160
// FIXME (#9639): This needs to handle non-utf8 paths
0 commit comments