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/fuzzer | |
| parent | fec8059ed5cf756adf25742c96f82bf3a240513e (diff) | |
| download | rust-78ec6fe30cf2b1e85db76107154d315fde6af8bd.tar.gz rust-78ec6fe30cf2b1e85db76107154d315fde6af8bd.zip | |
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/fuzzer')
| -rw-r--r-- | src/fuzzer/fuzzer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index a0621bf257f..00a9ceeabd7 100644 --- a/src/fuzzer/fuzzer.rs +++ b/src/fuzzer/fuzzer.rs @@ -34,7 +34,7 @@ fn find_rust_files(&files: ~[str], path: str) { fn common_exprs() -> ~[ast::expr] { fn dse(e: ast::expr_) -> ast::expr { - { id: 0, node: e, span: ast_util::dummy_sp() } + { id: 0, callee_id: -1, node: e, span: ast_util::dummy_sp() } } fn dsl(l: ast::lit_) -> ast::lit { |
