librustc: Remove all legacy pattern bindings from libsyntax and librustc. rs=refactoring

This commit is contained in:
Patrick Walton
2012-12-04 10:50:00 -08:00
parent 94be145169
commit 56ece46f7d
87 changed files with 937 additions and 923 deletions

View File

@@ -199,9 +199,9 @@ impl Parser {
while self.token != token::GT
&& self.token != token::BINOP(token::SHR) {
match sep {
Some(t) => {
Some(ref t) => {
if first { first = false; }
else { self.expect(t); }
else { self.expect((*t)); }
}
_ => ()
}
@@ -243,9 +243,9 @@ impl Parser {
let mut v: ~[T] = ~[];
while self.token != ket {
match sep.sep {
Some(t) => {
Some(ref t) => {
if first { first = false; }
else { self.expect(t); }
else { self.expect((*t)); }
}
_ => ()
}