1
Fork 0

[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

@ -253,7 +253,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
lifetimes: OptVec<ast::Lifetime>,
types: ~[P<ast::Ty>])
-> ast::Path {
let last_identifier = idents.pop();
let last_identifier = idents.pop().unwrap();
let mut segments: ~[ast::PathSegment] = idents.move_iter()
.map(|ident| {
ast::PathSegment {