libsyntax: Stop parsing [const T].

This commit is contained in:
Patrick Walton 2013-03-22 18:24:37 -07:00
parent 0d52b22e7b
commit 46d4cc12d1

View file

@ -1176,7 +1176,7 @@ pub impl Parser {
} else if *self.token == token::LBRACKET {
self.bump();
let mutbl = self.parse_mutability();
if mutbl == m_mutbl { // `m_const` too after snapshot
if mutbl == m_mutbl || mutbl == m_const {
self.obsolete(*self.last_span, ObsoleteMutVector);
}