Make the expanded expression in expr_ext not optional
This commit is contained in:
parent
7cef1b3a0f
commit
c1e6f5328c
5 changed files with 9 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue