From bada25e425ae30583ad343e36a034e59c66fcad6 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 23 Dec 2013 16:20:52 +0100 Subject: [std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behavior --- src/compiletest/header.rs | 6 +++--- src/compiletest/runtest.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/compiletest') diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs index 54d99151233..ee4d74ce169 100644 --- a/src/compiletest/header.rs +++ b/src/compiletest/header.rs @@ -159,10 +159,10 @@ fn parse_exec_env(line: &str) -> Option<(~str, ~str)> { let mut strs: ~[~str] = nv.splitn('=', 1).map(|s| s.to_owned()).collect(); match strs.len() { - 1u => (strs.pop(), ~""), + 1u => (strs.pop().unwrap(), ~""), 2u => { - let end = strs.pop(); - (strs.pop(), end) + let end = strs.pop().unwrap(); + (strs.pop().unwrap(), end) } n => fail!("Expected 1 or 2 strings, not {}", n) } diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index e06f4e32631..6f8a3ad83a3 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -917,7 +917,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps, // get bare program string let mut tvec: ~[~str] = args.prog.split('/').map(|ts| ts.to_owned()).collect(); - let prog_short = tvec.pop(); + let prog_short = tvec.pop().unwrap(); // copy to target let copy_result = procsrv::run("", config.adb_path, -- cgit 1.4.1-3-g733a5