diff options
| author | Graydon Hoare <[email protected]> | 2010-12-31 15:16:11 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-31 15:16:11 -0800 |
| commit | 10a130e6c14645a7c39b7ac5636a98c98776fc09 (patch) | |
| tree | dfe9b0d3881e201f847858b3f072c86244d17550 /src/comp | |
| parent | Update method-fold env with fake item_fn representing the method. (diff) | |
| download | rust-10a130e6c14645a7c39b7ac5636a98c98776fc09.tar.xz rust-10a130e6c14645a7c39b7ac5636a98c98776fc09.zip | |
Translate local item decls.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/trans.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 115ef1f2..4681b579 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -2306,6 +2306,9 @@ impure fn trans_stmt(@block_ctxt cx, &ast.stmt s) -> result { } } } + case (ast.decl_item(?i)) { + trans_item(cx.fcx.ccx, *i); + } } } case (_) { |