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/libsyntax/parse/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 30408fa1c2b..4e1703fe6b0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2158,7 +2158,7 @@ impl Parser { // Parse the close delimiter. result.push(parse_any_tt_tok(self)); - self.open_braces.pop(); + self.open_braces.pop().unwrap(); TTDelim(@result) } @@ -3593,7 +3593,7 @@ impl Parser { } ); - let variadic = match args.pop_opt() { + let variadic = match args.pop() { Some(None) => true, Some(x) => { // Need to put back that last arg @@ -4218,7 +4218,7 @@ impl Parser { } fn pop_mod_path(&mut self) { - self.mod_path_stack.pop(); + self.mod_path_stack.pop().unwrap(); } // read a module from a source file. -- cgit 1.4.1-3-g733a5