Skip to content

Commit 3fa880f

Browse files
committed
---
yaml --- r: 89247 b: refs/heads/snap-stage3 c: 044ad56 h: refs/heads/master i: 89245: 101de8c 89243: c7be3fe 89239: e9b22a5 89231: 8d96b58 89215: a747265 v: v3
1 parent 71f0321 commit 3fa880f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: deeca5d586bfaa4aa60246f671a8d611d38f6248
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: cc3e6ecbfd4e95c7fe37df676bc05993885fa181
4+
refs/heads/snap-stage3: 044ad56824e81865d3b46f812b815f355388a716
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
304304
token: tok0.tok,
305305
span: span,
306306
last_span: span,
307-
last_token: @mut None,
307+
last_token: None,
308308
buffer: @mut ([
309309
placeholder.clone(),
310310
placeholder.clone(),
@@ -334,7 +334,7 @@ pub struct Parser {
334334
// the span of the prior token:
335335
last_span: Span,
336336
// the previous token or None (only stashed sometimes).
337-
last_token: @mut Option<~token::Token>,
337+
last_token: Option<~token::Token>,
338338
buffer: @mut [TokenAndSpan, ..4],
339339
buffer_start: @mut int,
340340
buffer_end: @mut int,
@@ -728,7 +728,7 @@ impl Parser {
728728
pub fn bump(&mut self) {
729729
self.last_span = self.span;
730730
// Stash token for error recovery (sometimes; clone is not necessarily cheap).
731-
*self.last_token = if is_ident_or_path(&self.token) {
731+
self.last_token = if is_ident_or_path(&self.token) {
732732
Some(~self.token.clone())
733733
} else {
734734
None

0 commit comments

Comments
 (0)