diff options
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 4eb303ed..8e848afb 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -603,13 +603,12 @@ io fn parse_fn(parser p) -> tup(ast.ident, @ast.item) { some(token.COMMA), pf, p); - let ast.slot output; + let ast.ty output; if (p.peek() == token.RARROW) { p.bump(); - output = rec(ty=parse_ty(p), mode=ast.val, id=none[ast.slot_id]); + output = *parse_ty(p); } else { - output = rec(ty=@spanned(lo, inputs.span, ast.ty_nil), - mode=ast.val, id=none[ast.slot_id]); + output = spanned(lo, inputs.span, ast.ty_nil); } auto body = parse_block(p); |