Skip to content

Commit ac11b1c

Browse files
committed
---
yaml --- r: 91080 b: refs/heads/master c: 4ee95cf h: refs/heads/master v: v3
1 parent 4cf8eff commit ac11b1c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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: 6992a5c77d948a5600f719387786c51d36fdcd0a
2+
refs/heads/master: 4ee95cf96c8e4d30b8d0dfa83f58d050cae10fae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/libsyntax/parse/parser.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
314314
buffer_start: 0,
315315
buffer_end: 0,
316316
tokens_consumed: 0,
317-
restriction: @mut UNRESTRICTED,
317+
restriction: UNRESTRICTED,
318318
quote_depth: 0,
319319
obsolete_set: @mut HashSet::new(),
320320
mod_path_stack: @mut ~[],
@@ -339,7 +339,7 @@ pub struct Parser {
339339
buffer_start: int,
340340
buffer_end: int,
341341
tokens_consumed: uint,
342-
restriction: @mut restriction,
342+
restriction: restriction,
343343
quote_depth: uint, // not (yet) related to the quasiquoter
344344
reader: @mut reader,
345345
interner: @token::ident_interner,
@@ -2356,7 +2356,7 @@ impl Parser {
23562356
// scope of the borrows.
23572357
{
23582358
let token: &token::Token = &self.token;
2359-
let restriction: &restriction = self.restriction;
2359+
let restriction: &restriction = &self.restriction;
23602360
match (token, restriction) {
23612361
(&token::BINOP(token::OR), &RESTRICT_NO_BAR_OP) => return lhs,
23622362
(&token::BINOP(token::OR),
@@ -2700,10 +2700,10 @@ impl Parser {
27002700

27012701
// parse an expression, subject to the given restriction
27022702
fn parse_expr_res(&mut self, r: restriction) -> @Expr {
2703-
let old = *self.restriction;
2704-
*self.restriction = r;
2703+
let old = self.restriction;
2704+
self.restriction = r;
27052705
let e = self.parse_assign_expr();
2706-
*self.restriction = old;
2706+
self.restriction = old;
27072707
return e;
27082708
}
27092709

@@ -3310,7 +3310,7 @@ impl Parser {
33103310

33113311
// is this expression a successfully-parsed statement?
33123312
fn expr_is_complete(&mut self, e: @Expr) -> bool {
3313-
return *self.restriction == RESTRICT_STMT_EXPR &&
3313+
return self.restriction == RESTRICT_STMT_EXPR &&
33143314
!classify::expr_requires_semi_to_be_stmt(e);
33153315
}
33163316

0 commit comments

Comments
 (0)