aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-06 15:41:14 -0700
committerGraydon Hoare <[email protected]>2010-10-06 15:41:14 -0700
commit5f2d35ed0853f0fb7bb72f633794b8b8da5cd713 (patch)
tree1379e836f14d8698bb5b93df3e99ad77dc3d4d06 /src/comp/middle
parentAdd -minimal mode to rustboot that skips emitting code that's broken or unnee... (diff)
downloadrust-5f2d35ed0853f0fb7bb72f633794b8b8da5cd713.tar.xz
rust-5f2d35ed0853f0fb7bb72f633794b8b8da5cd713.zip
Make ast node box uses more uniform in rustc.
Diffstat (limited to 'src/comp/middle')
-rw-r--r--src/comp/middle/trans.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index ab851f4b..7d1ad40d 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -728,17 +728,17 @@ fn trans_item(@trans_ctxt cx, &str name, &ast.item item) {
auto sub_cx = @rec(path=cx.path + "." + name with *cx);
alt (item.node) {
case (ast.item_fn(?f, _)) {
- trans_fn(sub_cx, *f);
+ trans_fn(sub_cx, f);
}
case (ast.item_mod(?m)) {
- trans_mod(sub_cx, *m);
+ trans_mod(sub_cx, m);
}
}
}
fn trans_mod(@trans_ctxt cx, &ast._mod m) {
- for each (tup(str, ast.item) pair in m.items()) {
- trans_item(cx, pair._0, pair._1);
+ for each (tup(str, @ast.item) pair in m.items()) {
+ trans_item(cx, pair._0, *pair._1);
}
}