Skip to content

Commit 3ea70e9

Browse files
committed
make comparison of special_idents non-hygienic
1 parent 079b313 commit 3ea70e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
385385
fmt!("macro undefined: '%s!'", extnamestr)),
386386

387387
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 {
389389
cx.span_fatal(pth.span,
390390
fmt!("macro %s! expects no ident argument, \
391391
given '%s'", extnamestr,
@@ -401,7 +401,7 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
401401
expander(cx, it.span, tts)
402402
}
403403
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 {
405405
cx.span_fatal(pth.span,
406406
fmt!("macro %s! expects an ident argument",
407407
extnamestr));

0 commit comments

Comments
 (0)