diff options
Diffstat (limited to 'src/librustc/back/rpath.rs')
| -rw-r--r-- | src/librustc/back/rpath.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs index c56ed34309c..0bfbe1a80c5 100644 --- a/src/librustc/back/rpath.rs +++ b/src/librustc/back/rpath.rs @@ -64,7 +64,7 @@ fn get_rpaths(os: session::os, debug!("sysroot: %s", sysroot.to_str()); debug!("output: %s", output.to_str()); debug!("libs:"); - for libs.iter().advance |libpath| { + foreach libpath in libs.iter() { debug!(" %s", libpath.to_str()); } debug!("target_triple: %s", target_triple); @@ -83,7 +83,7 @@ fn get_rpaths(os: session::os, fn log_rpaths(desc: &str, rpaths: &[Path]) { debug!("%s rpaths:", desc); - for rpaths.iter().advance |rpath| { + foreach rpath in rpaths.iter() { debug!(" %s", rpath.to_str()); } } @@ -183,7 +183,7 @@ pub fn get_install_prefix_rpath(target_triple: &str) -> Path { pub fn minimize_rpaths(rpaths: &[Path]) -> ~[Path] { let mut set = HashSet::new(); let mut minimized = ~[]; - for rpaths.iter().advance |rpath| { + foreach rpath in rpaths.iter() { if set.insert(rpath.to_str()) { minimized.push(rpath.clone()); } |
