From 540344acb9ebaa0141e991217c9fd9e2a5ec717a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 21 Apr 2011 20:34:04 -0400 Subject: Fix the signature of expr_ext The extension body is just a string, not an expression. --- src/comp/front/extfmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/front/extfmt.rs') diff --git a/src/comp/front/extfmt.rs b/src/comp/front/extfmt.rs index e8f0c252..39c074c3 100644 --- a/src/comp/front/extfmt.rs +++ b/src/comp/front/extfmt.rs @@ -46,7 +46,7 @@ export expand_syntax_ext; // FIXME: Need to thread parser through here to handle errors correctly fn expand_syntax_ext(vec[@ast.expr] args, - option.t[@ast.expr] body) -> @ast.expr { + option.t[str] body) -> @ast.expr { if (_vec.len[@ast.expr](args) == 0u) { log_err "malformed #fmt call"; -- cgit v1.2.3