Skip to content

Commit 0ffb6be

Browse files
committed
libsyntax: Stop parsing [const T].
1 parent db0a8c3 commit 0ffb6be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ pub impl Parser {
11761176
} else if *self.token == token::LBRACKET {
11771177
self.bump();
11781178
let mutbl = self.parse_mutability();
1179-
if mutbl == m_mutbl { // `m_const` too after snapshot
1179+
if mutbl == m_mutbl || mutbl == m_const {
11801180
self.obsolete(*self.last_span, ObsoleteMutVector);
11811181
}
11821182

0 commit comments

Comments
 (0)