diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-11 15:10:24 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-11 15:10:24 +0200 |
| commit | 5405f45274dc6dce53743092dc0679a5f43482d9 (patch) | |
| tree | d1417d56ca0770e3cbf7abf1273ed1f2fce3fe4c /src/comp/middle/fold.rs | |
| parent | Stop depending on block indices in capture.rs (diff) | |
| download | rust-5405f45274dc6dce53743092dc0679a5f43482d9.tar.xz rust-5405f45274dc6dce53743092dc0679a5f43482d9.zip | |
Get rid of block indices
Diffstat (limited to 'src/comp/middle/fold.rs')
| -rw-r--r-- | src/comp/middle/fold.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/comp/middle/fold.rs b/src/comp/middle/fold.rs index 62521067..bf85297f 100644 --- a/src/comp/middle/fold.rs +++ b/src/comp/middle/fold.rs @@ -862,7 +862,6 @@ fn fold_stmt[ENV](&ENV env, &ast_fold[ENV] fld, &@stmt s) -> @stmt { fn fold_block[ENV](&ENV env, &ast_fold[ENV] fld, &block blk) -> block { - auto index = new_str_hash[ast.block_index_entry](); let ENV env_ = fld.update_env_for_block(env, blk); if (!fld.keep_going(env_)) { @@ -873,7 +872,6 @@ fn fold_block[ENV](&ENV env, &ast_fold[ENV] fld, &block blk) -> block { for (@ast.stmt s in blk.node.stmts) { auto new_stmt = fold_stmt[ENV](env_, fld, s); Vec.push[@ast.stmt](stmts, new_stmt); - ast.index_stmt(index, new_stmt); } auto expr = none[@ast.expr]; @@ -887,7 +885,7 @@ fn fold_block[ENV](&ENV env, &ast_fold[ENV] fld, &block blk) -> block { } auto aa = fld.fold_ann(env, blk.node.a); - ret respan(blk.span, rec(stmts=stmts, expr=expr, index=index, a=aa)); + ret respan(blk.span, rec(stmts=stmts, expr=expr, a=aa)); } fn fold_arm[ENV](&ENV env, &ast_fold[ENV] fld, &arm a) -> arm { |