diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-12-16 06:27:50 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2011-12-16 07:17:23 -0800 |
| commit | 2833ca478c19d2f8f150570a6d60b93488debdcc (patch) | |
| tree | 041865de99eb77a1d4504ee29c38691a7f872f34 /src/comp/back | |
| parent | 0a3626161d5ebb1d2c6839773b0e533d3ec4589c (diff) | |
| download | rust-2833ca478c19d2f8f150570a6d60b93488debdcc.tar.gz rust-2833ca478c19d2f8f150570a6d60b93488debdcc.zip | |
reorder args to the various vec, option fns so blk comes last
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/rpath.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/back/rpath.rs b/src/comp/back/rpath.rs index a3b662e243f..7aa271090dd 100644 --- a/src/comp/back/rpath.rs +++ b/src/comp/back/rpath.rs @@ -47,7 +47,7 @@ fn get_sysroot_absolute_rt_lib(sess: session::session) -> fs::path { } fn rpaths_to_flags(rpaths: [str]) -> [str] { - vec::map({ |rpath| #fmt("-Wl,-rpath,%s",rpath)}, rpaths) + vec::map(rpaths, { |rpath| #fmt("-Wl,-rpath,%s",rpath)}) } fn get_rpaths(os: session::os, cwd: fs::path, sysroot: fs::path, @@ -96,7 +96,7 @@ fn get_rpaths_relative_to_output(os: session::os, cwd: fs::path, output: fs::path, libs: [fs::path]) -> [str] { - vec::map(bind get_rpath_relative_to_output(os, cwd, output, _), libs) + vec::map(libs, bind get_rpath_relative_to_output(os, cwd, output, _)) } fn get_rpath_relative_to_output(os: session::os, @@ -150,7 +150,7 @@ fn get_relative_to(abs1: fs::path, abs2: fs::path) -> fs::path { } fn get_absolute_rpaths(cwd: fs::path, libs: [fs::path]) -> [str] { - vec::map(bind get_absolute_rpath(cwd, _), libs) + vec::map(libs, bind get_absolute_rpath(cwd, _)) } fn get_absolute_rpath(cwd: fs::path, &&lib: fs::path) -> str { |
