diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/back/rpath.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs index d548dc6dfb7..c47f9893cd2 100644 --- a/src/librustc/back/rpath.rs +++ b/src/librustc/back/rpath.rs @@ -197,7 +197,7 @@ mod test { #[test] fn test_prefix_rpath() { let sysroot = filesearch::get_or_default_sysroot(); - let res = get_install_prefix_rpath(sysroot, "triple"); + let res = get_install_prefix_rpath(&sysroot, "triple"); let mut d = Path::new(env!("CFG_PREFIX")); d.push("lib"); d.push(filesearch::rustlibdir()); @@ -211,7 +211,7 @@ mod test { #[test] fn test_prefix_rpath_abs() { let sysroot = filesearch::get_or_default_sysroot(); - let res = get_install_prefix_rpath(sysroot, "triple"); + let res = get_install_prefix_rpath(&sysroot, "triple"); assert!(Path::new(res).is_absolute()); } |
