[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behavior

This commit is contained in:
Simon Sapin
2013-12-23 16:20:52 +01:00
parent aa66b91767
commit bada25e425
43 changed files with 128 additions and 133 deletions

View File

@@ -78,7 +78,7 @@ pub fn ibox(s: &mut State, u: uint) {
pub fn end(s: &mut State) {
{
let mut boxes = s.boxes.borrow_mut();
boxes.get().pop();
boxes.get().pop().unwrap();
}
pp::end(&mut s.s);
}
@@ -1090,11 +1090,11 @@ pub fn print_call_pre(s: &mut State,
match sugar {
ast::DoSugar => {
head(s, "do");
Some(base_args.pop())
Some(base_args.pop().unwrap())
}
ast::ForSugar => {
head(s, "for");
Some(base_args.pop())
Some(base_args.pop().unwrap())
}
ast::NoSugar => None
}