From 29ec2506abb1d382e432cae2519aa7b7695c276a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 4 Jul 2014 00:56:57 -0700 Subject: librustc: Remove the `&LIFETIME EXPR` production from the language. 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] --- src/libsyntax/parse/parser.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libsyntax/parse') 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; -- cgit 1.4.1-3-g733a5