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

@ -185,7 +185,7 @@ tag expr_ {
expr_field(@expr, ident, ann);
expr_index(@expr, @expr, ann);
expr_path(path, option.t[def], ann);
expr_ext(path, vec[@expr], option.t[@expr], option.t[@expr], ann);
expr_ext(path, vec[@expr], option.t[@expr], @expr, ann);
expr_fail;
expr_ret(option.t[@expr]);
expr_put(option.t[@expr]);

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;