File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
385
385
fmt ! ( "macro undefined: '%s!'" , extnamestr) ) ,
386
386
387
387
Some ( @SE ( NormalTT ( expander, span) ) ) => {
388
- if it. ident != parse:: token:: special_idents:: invalid {
388
+ if it. ident . name != parse:: token:: special_idents:: invalid. name {
389
389
cx. span_fatal ( pth. span ,
390
390
fmt ! ( "macro %s! expects no ident argument, \
391
391
given '%s'", extnamestr,
@@ -401,7 +401,7 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
401
401
expander ( cx, it. span , tts)
402
402
}
403
403
Some ( @SE ( IdentTT ( expander, span) ) ) => {
404
- if it. ident == parse:: token:: special_idents:: invalid {
404
+ if it. ident . name == parse:: token:: special_idents:: invalid. name {
405
405
cx. span_fatal ( pth. span ,
406
406
fmt ! ( "macro %s! expects an ident argument" ,
407
407
extnamestr) ) ;
You can’t perform that action at this time.
0 commit comments