diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-08-03 19:49:12 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-08-03 19:49:12 -0700 |
| commit | f23674394f2e77b7aa4686a5ae9f2f60d6faa428 (patch) | |
| tree | 4c4d8d805f80254a9aa2f2788d288e053d88fe62 /src/libsyntax/parse/parser.rs | |
| parent | 51a5a4ad0e2501b260a8059a72e4b0eebe78d6f9 (diff) | |
| download | rust-f23674394f2e77b7aa4686a5ae9f2f60d6faa428.tar.gz rust-f23674394f2e77b7aa4686a5ae9f2f60d6faa428.zip | |
rustc: Merge fn& and fn in favor of fn&.
This is a step on the way to moving the function "proto" sigil out front.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index c76a82a5c9b..4769e4ab384 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -41,13 +41,13 @@ import ast::{_mod, add, alt_check, alt_exhaustive, arg, arm, attribute, match_nonterminal, match_seq, match_tok, method, mode, mt, mul, mutability, neg, noreturn, not, pat, pat_box, pat_enum, pat_ident, pat_lit, pat_range, pat_rec, pat_tup, pat_uniq, - pat_wild, path, private, proto, proto_any, proto_bare, - proto_block, proto_box, proto_uniq, provided, public, pure_fn, - purity, re_anon, re_named, region, rem, required, ret_style, - return_val, self_ty, shl, shr, stmt, stmt_decl, stmt_expr, - stmt_semi, subtract, sty_box, sty_by_ref, sty_region, sty_uniq, - sty_value, token_tree, trait_method, trait_ref, tt_delim, tt_seq, - tt_tok, tt_nonterminal, ty, ty_, ty_bot, ty_box, ty_field, ty_fn, + pat_wild, path, private, proto, proto_bare, proto_block, + proto_box, proto_uniq, provided, public, pure_fn, purity, + re_anon, re_named, region, rem, required, ret_style, return_val, + self_ty, shl, shr, stmt, stmt_decl, stmt_expr, stmt_semi, + subtract, sty_box, sty_by_ref, sty_region, sty_uniq, sty_value, + token_tree, trait_method, trait_ref, tt_delim, tt_seq, tt_tok, + tt_nonterminal, ty, ty_, ty_bot, ty_box, ty_field, ty_fn, ty_infer, ty_mac, ty_method, ty_nil, ty_param, ty_path, ty_ptr, ty_rec, ty_rptr, ty_tup, ty_u32, ty_uniq, ty_vec, ty_fixed_length, unchecked_blk, uniq, unsafe_blk, unsafe_fn, @@ -801,9 +801,6 @@ class parser { let proto = self.parse_fn_ty_proto(); alt proto { proto_bare { self.fatal(~"fn expr are deprecated, use fn@"); } - proto_any { - self.fatal(~"fn* cannot be used in an expression"); - } _ { /* fallthrough */ } } return pexpr(self.parse_fn_expr(proto)); @@ -2781,7 +2778,7 @@ class parser { proto_block } _ { - proto_any + proto_block } } } |
