Skip to content

Commit 4d0b0d4

Browse files
committed
---
yaml --- r: 44746 b: refs/heads/master c: 34c02a6 h: refs/heads/master v: v3
1 parent dbcc0f7 commit 4d0b0d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 28691a0852854a9996d07ab92bb55e92beef2c98
2+
refs/heads/master: 34c02a6c0ead2896ecc68aa92dd39cd62aee5aea
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/libsyntax/parse/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ pub fn token_to_str(reader: reader, token: &token::Token) -> ~str {
5151
}
5252

5353
pub impl Parser {
54-
fn unexpected_last(t: token::Token) -> ! {
54+
fn unexpected_last(t: &token::Token) -> ! {
5555
self.span_fatal(
5656
*self.last_span,
5757
fmt!(
5858
"unexpected token: `%s`",
59-
token_to_str(self.reader, &t)
59+
token_to_str(self.reader, t)
6060
)
6161
);
6262
}

trunk/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ pub impl Parser {
634634
|p| p.parse_ty_field()
635635
);
636636
if elems.len() == 0 {
637-
self.unexpected_last(token::RBRACE);
637+
self.unexpected_last(&token::RBRACE);
638638
}
639639
ty_rec(elems)
640640
} else if *self.token == token::LBRACKET {
@@ -868,7 +868,7 @@ pub impl Parser {
868868
lit_float_unsuffixed(self.id_to_str(s)),
869869
token::LIT_STR(s) => lit_str(self.id_to_str(s)),
870870
token::LPAREN => { self.expect(&token::RPAREN); lit_nil },
871-
_ => { self.unexpected_last(*tok); }
871+
_ => { self.unexpected_last(tok); }
872872
}
873873
}
874874

0 commit comments

Comments
 (0)