aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-04-05 16:17:47 -0700
committerLindsey Kuper <[email protected]>2011-04-05 16:26:31 -0700
commit4fc8de196977a0e5bb4f733f7aaeb1162e880eaa (patch)
tree9888cdb1305dd85a237df2271c93b849b241eec9 /src/comp/front
parentFurther on the path toward self-awareness. (diff)
downloadrust-4fc8de196977a0e5bb4f733f7aaeb1162e880eaa.tar.xz
rust-4fc8de196977a0e5bb4f733f7aaeb1162e880eaa.zip
Last pieces of self-call support.
The last few pieces of the hack that lets us use trans.trans_call() to translate self-calls, plus a fix for the parser buy that was preventing self-call expressions from getting past parsing. test/run-pass/obj-self.rs works now (as in it actually prints "hi!" twice!).
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 31e470be..27fdc7fe 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -899,7 +899,7 @@ impure fn parse_bottom_expr(parser p) -> @ast.expr {
some(token.COMMA),
pf, p);
hi = es.span;
- auto ex = ast.expr_call_self(e, es.node, ast.ann_none);
+ ex = ast.expr_call_self(e, es.node, ast.ann_none);
}
case (_) {