about summary refs log tree commit diff
path: root/src/libsyntax/ext/tt/macro_parser.rs
diff options
context:
space:
mode:
authorKevin Butler <haqkrs@gmail.com>2014-05-26 00:27:36 +0100
committerKevin Butler <haqkrs@gmail.com>2014-05-30 17:55:41 +0100
commit190d8bdbc6df078e2dc65ccdb8ab17a99a4a6556 (patch)
tree14e71c75fc23296a7681a319dbba0037a4c60261 /src/libsyntax/ext/tt/macro_parser.rs
parent16f15ce391b2b463d37ff7f5e764c7f55c33cc5d (diff)
downloadrust-190d8bdbc6df078e2dc65ccdb8ab17a99a4a6556.tar.gz
rust-190d8bdbc6df078e2dc65ccdb8ab17a99a4a6556.zip
libsyntax: Fix snake_case errors.
A number of functions/methods have been moved or renamed to align
better with rust standard conventions.

syntax::ext::mtwt::xorPush => xor_push
syntax::parse::parser::Parser => Parser::new

[breaking-change]
Diffstat (limited to 'src/libsyntax/ext/tt/macro_parser.rs')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs
index a92802aa338..65733793d6c 100644
--- a/src/libsyntax/ext/tt/macro_parser.rs
+++ b/src/libsyntax/ext/tt/macro_parser.rs
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -402,7 +402,7 @@ pub fn parse(sess: &ParseSess,
                 }
                 rdr.next_token();
             } else /* bb_eis.len() == 1 */ {
-                let mut rust_parser = Parser(sess, cfg.clone(), box rdr.clone());
+                let mut rust_parser = Parser::new(sess, cfg.clone(), box rdr.clone());
 
                 let mut ei = bb_eis.pop().unwrap();
                 match ei.elts.get(ei.idx).node {