File tree 2 files changed +0
-41
lines changed
2 files changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ use ptr::P;
24
24
pub enum ObsoleteSyntax {
25
25
Sized ,
26
26
ForSized ,
27
- ProcType ,
28
- ProcExpr ,
29
27
ClosureType ,
30
28
ClosureKind ,
31
29
EmptyIndex ,
@@ -57,16 +55,6 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
57
55
by default",
58
56
true ,
59
57
) ,
60
- ObsoleteSyntax :: ProcType => (
61
- "the `proc` type" ,
62
- "is not used for moment, use unboxed closures instead" ,
63
- true ,
64
- ) ,
65
- ObsoleteSyntax :: ProcExpr => (
66
- "`proc` expression" ,
67
- "is not used for the moment, use a `move ||` expression instead" ,
68
- true ,
69
- ) ,
70
58
ObsoleteSyntax :: ClosureType => (
71
59
"`|usize| -> bool` closure type" ,
72
60
"use unboxed closures instead, no type annotation needed" ,
Original file line number Diff line number Diff line change @@ -1119,35 +1119,6 @@ impl<'a> Parser<'a> {
1119
1119
} ) )
1120
1120
}
1121
1121
1122
- /// Parses a procedure type (`proc`). The initial `proc` keyword must
1123
- /// already have been parsed.
1124
- pub fn parse_proc_type ( & mut self , lifetime_defs : Vec < ast:: LifetimeDef > ) -> Ty_ {
1125
- /*
1126
-
1127
- proc <'lt> (S) [:Bounds] -> T
1128
- ^~~^ ^~~~^ ^ ^~~~~~~~^ ^
1129
- | | | | |
1130
- | | | | Return type
1131
- | | | Bounds
1132
- | | Argument types
1133
- | Legacy lifetimes
1134
- the `proc` keyword (already consumed)
1135
-
1136
- */
1137
-
1138
- let proc_span = self . last_span ;
1139
-
1140
- // To be helpful, parse the proc as ever
1141
- let _ = self . parse_legacy_lifetime_defs ( lifetime_defs) ;
1142
- let _ = self . parse_fn_args ( false , false ) ;
1143
- let _ = self . parse_colon_then_ty_param_bounds ( BoundParsingMode :: Bare ) ;
1144
- let _ = self . parse_ret_ty ( ) ;
1145
-
1146
- self . obsolete ( proc_span, ObsoleteSyntax :: ProcType ) ;
1147
-
1148
- TyInfer
1149
- }
1150
-
1151
1122
/// Parses an obsolete closure kind (`&:`, `&mut:`, or `:`).
1152
1123
pub fn parse_obsolete_closure_kind ( & mut self ) {
1153
1124
let lo = self . span . lo ;
You can’t perform that action at this time.
0 commit comments