@@ -314,7 +314,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
314
314
buffer_start : 0 ,
315
315
buffer_end : 0 ,
316
316
tokens_consumed : 0 ,
317
- restriction : @ mut UNRESTRICTED ,
317
+ restriction : UNRESTRICTED ,
318
318
quote_depth : 0 ,
319
319
obsolete_set : @mut HashSet :: new ( ) ,
320
320
mod_path_stack : @mut ~[ ] ,
@@ -339,7 +339,7 @@ pub struct Parser {
339
339
buffer_start : int ,
340
340
buffer_end : int ,
341
341
tokens_consumed : uint ,
342
- restriction : @ mut restriction ,
342
+ restriction : restriction ,
343
343
quote_depth : uint , // not (yet) related to the quasiquoter
344
344
reader : @mut reader ,
345
345
interner : @token:: ident_interner ,
@@ -2356,7 +2356,7 @@ impl Parser {
2356
2356
// scope of the borrows.
2357
2357
{
2358
2358
let token: & token:: Token = & self . token ;
2359
- let restriction: & restriction = self . restriction ;
2359
+ let restriction: & restriction = & self . restriction ;
2360
2360
match ( token, restriction) {
2361
2361
( & token:: BINOP ( token:: OR ) , & RESTRICT_NO_BAR_OP ) => return lhs,
2362
2362
( & token:: BINOP ( token:: OR ) ,
@@ -2700,10 +2700,10 @@ impl Parser {
2700
2700
2701
2701
// parse an expression, subject to the given restriction
2702
2702
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;
2705
2705
let e = self . parse_assign_expr ( ) ;
2706
- * self . restriction = old;
2706
+ self . restriction = old;
2707
2707
return e;
2708
2708
}
2709
2709
@@ -3310,7 +3310,7 @@ impl Parser {
3310
3310
3311
3311
// is this expression a successfully-parsed statement?
3312
3312
fn expr_is_complete ( & mut self , e : @Expr ) -> bool {
3313
- return * self . restriction == RESTRICT_STMT_EXPR &&
3313
+ return self . restriction == RESTRICT_STMT_EXPR &&
3314
3314
!classify:: expr_requires_semi_to_be_stmt ( e) ;
3315
3315
}
3316
3316
0 commit comments