File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ impl<'a> Parser<'a> {
1139
1139
1140
1140
/// Parses an obsolete closure kind (`&:`, `&mut:`, or `:`).
1141
1141
pub fn parse_obsolete_closure_kind ( & mut self ) {
1142
- // let lo = self.span.lo;
1142
+ let lo = self . span . lo ;
1143
1143
if
1144
1144
self . check ( & token:: BinOp ( token:: And ) ) &&
1145
1145
self . look_ahead ( 1 , |t| t. is_keyword ( keywords:: Mut ) ) &&
@@ -1163,10 +1163,8 @@ impl<'a> Parser<'a> {
1163
1163
return ;
1164
1164
}
1165
1165
1166
- // SNAP 474b324
1167
- // Enable these obsolete errors after snapshot:
1168
- // let span = mk_sp(lo, self.span.hi);
1169
- // self.obsolete(span, ObsoleteSyntax::ClosureKind);
1166
+ let span = mk_sp ( lo, self . span . hi ) ;
1167
+ self . obsolete ( span, ObsoleteSyntax :: ClosureKind ) ;
1170
1168
}
1171
1169
1172
1170
pub fn parse_ty_bare_fn_or_ty_closure ( & mut self , lifetime_defs : Vec < LifetimeDef > ) -> Ty_ {
Original file line number Diff line number Diff line change
1
+ S 2015-02-04 ac134f7
2
+ freebsd-x86_64 483e37a02a7ebc12a872e3146145e342ba4a5c04
3
+ linux-i386 8af64e5df839cc945399484380a8b2ebe05a6751
4
+ linux-x86_64 9f485d79c1f0d273ed864eddadb1707f3e2df489
5
+ macos-i386 800f86abd589a1d46c37a8700211c7ba6b05decb
6
+ macos-x86_64 b9961faccf79dcfdc0b7a6909bef8b6769798d08
7
+ winnt-i386 2c56a7573f8d0f78271dab1c8e29d3ced7a44ed8
8
+ winnt-x86_64 f1736f47de2a6fad1ff881e51c176f71db5dc2a5
9
+
1
10
S 2015-01-31 474b324
2
11
freebsd-x86_64 c5b55eb488790ff8425d74afa3b37c49517bc55f
3
12
linux-i386 319f2f3573c058cb2c4dfc75faaf8ea3ae86ef11
You can’t perform that action at this time.
0 commit comments