[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

@@ -904,7 +904,7 @@ pub fn mtwt_outer_mark(ctxt: SyntaxContext) -> Mrk {
/// case pop and discard (so two of the same marks cancel)
pub fn xorPush(marks: &mut ~[Mrk], mark: Mrk) {
if (marks.len() > 0) && (getLast(marks) == mark) {
marks.pop();
marks.pop().unwrap();
} else {
marks.push(mark);
}