diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-02-04 18:22:19 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-02-04 20:06:12 -0500 |
| commit | 92f11e938a80a719badcd2168a2e38a2a800fcb6 (patch) | |
| tree | 560107e02c2b0aeb2136ad9ec33ce73a7bdcc444 | |
| parent | 571cc7f8e98da46735a5728387c768cde75d010c (diff) | |
register snapshots
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 | ||||
| -rw-r--r-- | src/snapshots.txt | 9 |
2 files changed, 12 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 2cb265033c3..26433d06482 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1139,7 +1139,7 @@ impl<'a> Parser<'a> { /// Parses an obsolete closure kind (`&:`, `&mut:`, or `:`). pub fn parse_obsolete_closure_kind(&mut self) { - // let lo = self.span.lo; + let lo = self.span.lo; if self.check(&token::BinOp(token::And)) && self.look_ahead(1, |t| t.is_keyword(keywords::Mut)) && @@ -1163,10 +1163,8 @@ impl<'a> Parser<'a> { return; } - // SNAP 474b324 - // Enable these obsolete errors after snapshot: - // let span = mk_sp(lo, self.span.hi); - // self.obsolete(span, ObsoleteSyntax::ClosureKind); + let span = mk_sp(lo, self.span.hi); + self.obsolete(span, ObsoleteSyntax::ClosureKind); } pub fn parse_ty_bare_fn_or_ty_closure(&mut self, lifetime_defs: Vec<LifetimeDef>) -> Ty_ { diff --git a/src/snapshots.txt b/src/snapshots.txt index 058e2e6bf7f..56948ea1219 100644 --- a/src/snapshots.txt +++ b/src/snapshots.txt @@ -1,3 +1,12 @@ +S 2015-02-04 ac134f7 + freebsd-x86_64 483e37a02a7ebc12a872e3146145e342ba4a5c04 + linux-i386 8af64e5df839cc945399484380a8b2ebe05a6751 + linux-x86_64 9f485d79c1f0d273ed864eddadb1707f3e2df489 + macos-i386 800f86abd589a1d46c37a8700211c7ba6b05decb + macos-x86_64 b9961faccf79dcfdc0b7a6909bef8b6769798d08 + winnt-i386 2c56a7573f8d0f78271dab1c8e29d3ced7a44ed8 + winnt-x86_64 f1736f47de2a6fad1ff881e51c176f71db5dc2a5 + S 2015-01-31 474b324 freebsd-x86_64 c5b55eb488790ff8425d74afa3b37c49517bc55f linux-i386 319f2f3573c058cb2c4dfc75faaf8ea3ae86ef11 |
