@@ -41,13 +41,13 @@ import ast::{_mod, add, alt_check, alt_exhaustive, arg, arm, attribute,
41
41
match_nonterminal, match_seq, match_tok, method, mode, mt, mul,
42
42
mutability, neg, noreturn, not, pat, pat_box, pat_enum,
43
43
pat_ident, pat_lit, pat_range, pat_rec, pat_tup, pat_uniq,
44
- pat_wild, path, private, proto, proto_any , proto_bare ,
45
- proto_block , proto_box, proto_uniq, provided, public, pure_fn,
46
- purity , re_anon, re_named, region, rem, required, ret_style,
47
- return_val , self_ty, shl, shr, stmt, stmt_decl, stmt_expr,
48
- stmt_semi , subtract, sty_box, sty_by_ref, sty_region, sty_uniq,
49
- sty_value , token_tree, trait_method, trait_ref, tt_delim, tt_seq,
50
- tt_tok , tt_nonterminal, ty, ty_, ty_bot, ty_box, ty_field, ty_fn,
44
+ pat_wild, path, private, proto, proto_bare , proto_block ,
45
+ proto_box, proto_uniq, provided, public, pure_fn, purity ,
46
+ re_anon, re_named, region, rem, required, ret_style, return_val ,
47
+ self_ty, shl, shr, stmt, stmt_decl, stmt_expr, stmt_semi ,
48
+ subtract, sty_box, sty_by_ref, sty_region, sty_uniq, sty_value ,
49
+ token_tree, trait_method, trait_ref, tt_delim, tt_seq, tt_tok ,
50
+ tt_nonterminal, ty, ty_, ty_bot, ty_box, ty_field, ty_fn,
51
51
ty_infer, ty_mac, ty_method, ty_nil, ty_param, ty_path, ty_ptr,
52
52
ty_rec, ty_rptr, ty_tup, ty_u32, ty_uniq, ty_vec,
53
53
ty_fixed_length, unchecked_blk, uniq, unsafe_blk, unsafe_fn,
@@ -801,9 +801,6 @@ class parser {
801
801
let proto = self . parse_fn_ty_proto ( ) ;
802
802
alt proto {
803
803
proto_bare { self. fatal ( ~"fn expr are deprecated, use fn@") ; }
804
- proto_any {
805
- self . fatal ( ~"fn * cannot be used in an expression") ;
806
- }
807
804
_ { /* fallthrough */ }
808
805
}
809
806
return pexpr ( self . parse_fn_expr ( proto) ) ;
@@ -2781,7 +2778,7 @@ class parser {
2781
2778
proto_block
2782
2779
}
2783
2780
_ {
2784
- proto_any
2781
+ proto_block
2785
2782
}
2786
2783
}
2787
2784
}
0 commit comments