diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-11 14:31:35 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-12 19:02:07 -0700 |
| commit | 78ec6fe30cf2b1e85db76107154d315fde6af8bd (patch) | |
| tree | e4c4b54ea819d68c8fd7d5a2b5055364488bf15b /src/libsyntax/ext/log_syntax.rs | |
| parent | fec8059ed5cf756adf25742c96f82bf3a240513e (diff) | |
Obliterate the callee_id hack
Exprs that could be applications of overloaded operators (expr_unary, expr_binary, expr_index) relied on the previous node ID being "reserved" to carry extra typechecking info. This was incredibly error-prone. Fixed it; now all exprs have two node IDs (which will be wasted in some cases; future work could make this an option instead if the extra int field ends up being a performance problem). Closes #2804
Diffstat (limited to 'src/libsyntax/ext/log_syntax.rs')
| -rw-r--r-- | src/libsyntax/ext/log_syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/log_syntax.rs b/src/libsyntax/ext/log_syntax.rs index d237cd33839..06941fc5d38 100644 --- a/src/libsyntax/ext/log_syntax.rs +++ b/src/libsyntax/ext/log_syntax.rs @@ -11,6 +11,6 @@ fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg, ); //trivial expression - ret @{id: cx.next_id(), node: ast::expr_rec(~[], option::none), - span: sp}; + ret @{id: cx.next_id(), callee_id: cx.next_id(), + node: ast::expr_rec(~[], option::none), span: sp}; } |
