rustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{...} only.
This commit is contained in:
parent
f7960ac549
commit
12b212f38c
1 changed files with 2 additions and 2 deletions
|
@ -1083,7 +1083,7 @@ impl Parser {
|
|||
if self.token == token::NOT {
|
||||
self.bump();
|
||||
let tts = match self.token {
|
||||
token::LPAREN | token::LBRACE | token::LBRACKET => {
|
||||
token::LPAREN | token::LBRACE => {
|
||||
let ket = token::flip_delimiter(self.token);
|
||||
self.parse_unspanned_seq(copy self.token, ket,
|
||||
seq_sep_none(),
|
||||
|
@ -3418,7 +3418,7 @@ impl Parser {
|
|||
self.expect(token::NOT);
|
||||
let id = self.parse_ident();
|
||||
let tts = match self.token {
|
||||
token::LPAREN | token::LBRACE | token::LBRACKET => {
|
||||
token::LPAREN | token::LBRACE => {
|
||||
let ket = token::flip_delimiter(self.token);
|
||||
self.parse_unspanned_seq(copy self.token, ket,
|
||||
seq_sep_none(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue