diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-02-15 11:25:39 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-02-15 13:26:11 -0800 |
| commit | bfff2a8d55f8d96df77c7e496dc7713fe7faf5f9 (patch) | |
| tree | 23c1e0515c6894f15bbd9c5b473f7f4e2653965d /src/comp/syntax/ext | |
| parent | dddd9908d537ce2858f37783779c3b88005ff0a8 (diff) | |
make mut a keyword synonymous with mutable
first step towards issue #1273
Diffstat (limited to 'src/comp/syntax/ext')
| -rw-r--r-- | src/comp/syntax/ext/build.rs | 4 | ||||
| -rw-r--r-- | src/comp/syntax/ext/qquote.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/simplext.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/syntax/ext/build.rs b/src/comp/syntax/ext/build.rs index 4d0cfa75a14..5d615c4305d 100644 --- a/src/comp/syntax/ext/build.rs +++ b/src/comp/syntax/ext/build.rs @@ -61,7 +61,7 @@ fn mk_call(cx: ext_ctxt, sp: span, fn_path: [ast::ident], // e = expr, t = type fn mk_vec_e(cx: ext_ctxt, sp: span, exprs: [@ast::expr]) -> @ast::expr { - let vecexpr = ast::expr_vec(exprs, ast::imm); + let vecexpr = ast::expr_vec(exprs, ast::m_imm); ret @{id: cx.next_id(), node: vecexpr, span: sp}; } fn mk_rec_e(cx: ext_ctxt, sp: span, @@ -72,7 +72,7 @@ fn mk_rec_e(cx: ext_ctxt, sp: span, let ident = field.ident; let val = field.ex; let astfield = - {node: {mut: ast::imm, ident: ident, expr: val}, span: sp}; + {node: {mutbl: ast::m_imm, ident: ident, expr: val}, span: sp}; astfields += [astfield]; } let recexpr = ast::expr_rec(astfields, option::none::<@ast::expr>); diff --git a/src/comp/syntax/ext/qquote.rs b/src/comp/syntax/ext/qquote.rs index 6afb3fa3f75..6d2a9e04d72 100644 --- a/src/comp/syntax/ext/qquote.rs +++ b/src/comp/syntax/ext/qquote.rs @@ -231,7 +231,7 @@ fn finish<T: qq_helper> [mk_str(cx,sp, loc.file.name), mk_uint(cx,sp, loc.line), mk_uint(cx,sp, loc.col)]), - mk_unary(cx,sp, ast::box(ast::imm), + mk_unary(cx,sp, ast::box(ast::m_imm), mk_str(cx,sp, str2)), mk_access_(cx,sp, mk_access_(cx,sp, session_call(), "opts"), diff --git a/src/comp/syntax/ext/simplext.rs b/src/comp/syntax/ext/simplext.rs index df281640210..b8f9dd2c140 100644 --- a/src/comp/syntax/ext/simplext.rs +++ b/src/comp/syntax/ext/simplext.rs @@ -682,7 +682,7 @@ fn add_new_extension(cx: ext_ctxt, sp: span, arg: ast::mac_arg, let clauses: [@clause] = []; for arg: @expr in args { alt arg.node { - expr_vec(elts, mut) { + expr_vec(elts, mutbl) { if vec::len(elts) != 2u { cx.span_fatal((*arg).span, "extension clause must consist of [" + |
