diff options
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 3846e9dc03b..0f2c93756b7 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1901,7 +1901,7 @@ fn parse_item_res(p: parser, attrs: [ast::attribute]) -> @ast::item { il: ast::il_normal, cf: ast::return_val, constraints: []}; - let f = {decl: decl, proto: ast::proto_fn, body: dtor}; + let f = {decl: decl, proto: ast::proto_shared, body: dtor}; ret mk_item(p, lo, dtor.span.hi, ident, ast::item_res(f, p.get_id(), ty_params, p.get_id()), attrs); } @@ -2140,7 +2140,7 @@ fn parse_fn_item_proto(p: parser) -> ast::proto { ast::proto_bare } else if p.peek() == token::AT { p.bump(); - ast::proto_fn + ast::proto_shared } else { ast::proto_bare } @@ -2152,7 +2152,7 @@ fn parse_fn_ty_proto(p: parser) -> ast::proto { ast::proto_bare } else if p.peek() == token::AT { p.bump(); - ast::proto_fn + ast::proto_shared } else { ast::proto_bare } @@ -2164,7 +2164,7 @@ fn parse_fn_anon_proto(p: parser) -> ast::proto { ast::proto_bare } else if p.peek() == token::AT { p.bump(); - ast::proto_fn + ast::proto_shared } else { ast::proto_bare } |
