Make the expanded expression in expr_ext not optional

This commit is contained in:
Brian Anderson 2011-02-27 22:35:27 -05:00 committed by Graydon Hoare
parent 7cef1b3a0f
commit c1e6f5328c
5 changed files with 9 additions and 11 deletions

View file

@ -755,7 +755,7 @@ impure fn expand_syntax_ext(parser p, ast.span sp,
if (_str.eq(extname, "fmt")) {
auto expanded = extfmt.expand_syntax_ext(args, body);
auto newexpr = ast.expr_ext(path, args, body,
some[@ast.expr](expanded),
expanded,
ast.ann_none);
ret newexpr;