diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 00:34:23 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:54 +1000 |
| commit | b29cd22bce6325a60788ab84f989bd2e82fcaaf4 (patch) | |
| tree | dfa42affe6369b9595b462b4ee15fdaf88ff8b3a /src/compiletest | |
| parent | 1e8982bdb26208d9d9ed4cdcbcd21cc9ef35bd46 (diff) | |
| download | rust-b29cd22bce6325a60788ab84f989bd2e82fcaaf4.tar.gz rust-b29cd22bce6325a60788ab84f989bd2e82fcaaf4.zip | |
std: replace str::all/any fns and methods with iterators
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/header.rs | 1 | ||||
| -rw-r--r-- | src/compiletest/runtest.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs index 782571fc679..153a8de8029 100644 --- a/src/compiletest/header.rs +++ b/src/compiletest/header.rs @@ -13,6 +13,7 @@ use core::prelude::*; use common::config; use common; +use core::iterator::IteratorUtil; use core::io; use core::os; use core::str; diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 444f4c8d539..6812f6e4455 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -735,7 +735,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps, let cmdline = make_cmdline("", args.prog, args.args); // get bare program string - let tvec: ~[~str] = args.prog.split_iter('/').transform(|ts| ts.to_owned()).collect(); + let mut tvec: ~[~str] = args.prog.split_iter('/').transform(|ts| ts.to_owned()).collect(); let prog_short = tvec.pop(); // copy to target |
