diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-08-09 20:09:47 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-08-10 07:33:21 -0700 |
| commit | 68f40d215eae0b0370807368ba58edd0befc8bcb (patch) | |
| tree | 95a98f92e428469fff2ec31cec7f0b9dc4b3fe18 /src/compiletest | |
| parent | 4062b84f4a5926f1037535903b13b99b6806f490 (diff) | |
| download | rust-68f40d215eae0b0370807368ba58edd0befc8bcb.tar.gz rust-68f40d215eae0b0370807368ba58edd0befc8bcb.zip | |
std: Rename Iterator.transform -> .map
cc #5898
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/header.rs | 2 | ||||
| -rw-r--r-- | src/compiletest/runtest.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs index a07da151afc..5e3687d7057 100644 --- a/src/compiletest/header.rs +++ b/src/compiletest/header.rs @@ -142,7 +142,7 @@ fn parse_check_line(line: &str) -> Option<~str> { fn parse_exec_env(line: &str) -> Option<(~str, ~str)> { do parse_name_value_directive(line, ~"exec-env").map |nv| { // nv is either FOO or FOO=BAR - let mut strs: ~[~str] = nv.splitn_iter('=', 1).transform(|s| s.to_owned()).collect(); + let mut strs: ~[~str] = nv.splitn_iter('=', 1).map(|s| s.to_owned()).collect(); match strs.len() { 1u => (strs.pop(), ~""), diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 9c176b504b2..d325341d157 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -350,13 +350,13 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError], fatal(~"process did not return an error status"); } - let prefixes = expected_errors.iter().transform(|ee| { + let prefixes = expected_errors.iter().map(|ee| { fmt!("%s:%u:", testfile.to_str(), ee.line) }).collect::<~[~str]>(); fn to_lower( s : &str ) -> ~str { let i = s.iter(); - let c : ~[char] = i.transform( |c| { + let c : ~[char] = i.map( |c| { if c.is_ascii() { c.to_ascii().to_lower().to_char() } else { @@ -760,7 +760,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps, let cmdline = make_cmdline("", args.prog, args.args); // get bare program string - let mut tvec: ~[~str] = args.prog.split_iter('/').transform(|ts| ts.to_owned()).collect(); + let mut tvec: ~[~str] = args.prog.split_iter('/').map(|ts| ts.to_owned()).collect(); let prog_short = tvec.pop(); // copy to target |
