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]
This commit is contained in:
Patrick Walton
2014-07-04 00:56:57 -07:00
parent 1bff1ff810
commit 29ec2506ab
13 changed files with 23 additions and 27 deletions

View File

@@ -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;