File tree Expand file tree Collapse file tree 3 files changed +1
-42
lines changed
branches/tmp/src/libsyntax/parse Expand file tree Collapse file tree 3 files changed +1
-42
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,6 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
- refs/heads/tmp: 4e877adddf7b2f7d9093bf26cd8649f30c04b834
37
+ refs/heads/tmp: a07945d663f4d5767314454bb8265723178bf26c
38
38
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
39
39
refs/tags/homu-tmp: d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf
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