aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-04-21 20:34:04 -0400
committerBrian Anderson <[email protected]>2011-04-21 20:42:26 -0400
commit540344acb9ebaa0141e991217c9fd9e2a5ec717a (patch)
tree04633c069092e6f36617db6a3f40e73212bc0b1c /src/comp/front/parser.rs
parenttest: Un-XFAIL drop-parametric-closure-with-bound-box.rs, oops. (diff)
downloadrust-540344acb9ebaa0141e991217c9fd9e2a5ec717a.tar.xz
rust-540344acb9ebaa0141e991217c9fd9e2a5ec717a.zip
Fix the signature of expr_ext
The extension body is just a string, not an expression.
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 26d3b89d..fdd41cf0 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -794,7 +794,7 @@ fn parse_bottom_expr(parser p) -> @ast.expr {
pf, p);
hi = es.span.hi;
ex = expand_syntax_ext(p, es.span, pth, es.node,
- none[@ast.expr]);
+ none[str]);
}
case (token.FAIL) {
@@ -935,7 +935,7 @@ fn parse_bottom_expr(parser p) -> @ast.expr {
fn expand_syntax_ext(parser p, ast.span sp,
&ast.path path, vec[@ast.expr] args,
- option.t[@ast.expr] body) -> ast.expr_ {
+ option.t[str] body) -> ast.expr_ {
check (_vec.len[ast.ident](path.node.idents) > 0u);
auto extname = path.node.idents.(0);