Skip to content

Commit 737dc36

Browse files
committed
---
yaml --- r: 52448 b: refs/heads/dist-snap c: a7eaa1f h: refs/heads/master v: v3
1 parent 305f507 commit 737dc36

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 800b8a759d7d22de9ff49a5bd680f36407123298
10+
refs/heads/dist-snap: a7eaa1f5e42b01e3f69b0851178e7a2f253f5ca9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ impl Parser {
747747
fn parse_fn_block_arg() -> arg_or_capture_item {
748748
do self.parse_capture_item_or |p| {
749749
let m = p.parse_arg_mode();
750+
let is_mutbl = self.eat_keyword(~"mut");
750751
let pat = p.parse_pat(false);
751752
let t = if p.eat(token::COLON) {
752753
p.parse_ty(false)
@@ -759,7 +760,7 @@ impl Parser {
759760
};
760761
either::Left(ast::arg {
761762
mode: m,
762-
is_mutbl: false,
763+
is_mutbl: is_mutbl,
763764
ty: t,
764765
pat: pat,
765766
id: p.get_id()

0 commit comments

Comments
 (0)