Skip to content

Commit 12b212f

Browse files
committed
rustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{...} only.
1 parent f7960ac commit 12b212f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ impl Parser {
10831083
if self.token == token::NOT {
10841084
self.bump();
10851085
let tts = match self.token {
1086-
token::LPAREN | token::LBRACE | token::LBRACKET => {
1086+
token::LPAREN | token::LBRACE => {
10871087
let ket = token::flip_delimiter(self.token);
10881088
self.parse_unspanned_seq(copy self.token, ket,
10891089
seq_sep_none(),
@@ -3418,7 +3418,7 @@ impl Parser {
34183418
self.expect(token::NOT);
34193419
let id = self.parse_ident();
34203420
let tts = match self.token {
3421-
token::LPAREN | token::LBRACE | token::LBRACKET => {
3421+
token::LPAREN | token::LBRACE => {
34223422
let ket = token::flip_delimiter(self.token);
34233423
self.parse_unspanned_seq(copy self.token, ket,
34243424
seq_sep_none(),

0 commit comments

Comments
 (0)