parent
9868b65b15
commit
b81905eedb
2 changed files with 36 additions and 2 deletions
|
@ -3248,7 +3248,7 @@ impl<'a> Parser<'a> {
|
|||
None => {
|
||||
// we only expect an ident if we didn't parse one
|
||||
// above.
|
||||
let ident_str = if id == token::special_idents::invalid {
|
||||
let ident_str = if id.name == token::special_idents::invalid.name {
|
||||
"identifier, "
|
||||
} else {
|
||||
""
|
||||
|
@ -3268,7 +3268,7 @@ impl<'a> Parser<'a> {
|
|||
);
|
||||
let hi = self.span.hi;
|
||||
|
||||
if id == token::special_idents::invalid {
|
||||
if id.name == token::special_idents::invalid.name {
|
||||
return box(GC) spanned(lo, hi, StmtMac(
|
||||
spanned(lo, hi, MacInvocTT(pth, tts, EMPTY_CTXT)), false));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue