about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-07-04 19:01:33 +0000
committerbors <bors@rust-lang.org>2014-07-04 19:01:33 +0000
commit935da0739e71c5581e5e6abb564e18f894e0ec04 (patch)
treefebd32b41fc7a597d749fbd231f54b7137bed9a1 /src/libsyntax
parent25e8b6ed9c9cf60448eb95a0e8a42330ed44f479 (diff)
parent29ec2506abb1d382e432cae2519aa7b7695c276a (diff)
downloadrust-935da0739e71c5581e5e6abb564e18f894e0ec04.tar.gz
rust-935da0739e71c5581e5e6abb564e18f894e0ec04.zip
auto merge of #15405 : pcwalton/rust/delifetime, r=nick29581
This was parsed by the parser but completely ignored; not even stored in
the AST!

This breaks code that looks like:

    static X: &'static [u8] = &'static [1, 2, 3];

Change this code to the shorter:

    static X: &'static [u8] = &[1, 2, 3];

Closes #15312.

[breaking-change]

r? @nick29581
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index f3789e25bc8..960971b94d2 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2400,7 +2400,6 @@ impl<'a> Parser<'a> {
           }
           token::BINOP(token::AND) | token::ANDAND => {
             self.expect_and();
-            let _lt = self.parse_opt_lifetime();
             let m = self.parse_mutability();
             let e = self.parse_prefix_expr();
             hi = e.span.hi;