mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 05:23:07 +00:00
make comparison of special_idents non-hygienic
This commit is contained in:
parent
3965725d51
commit
a666ddc135
@ -385,7 +385,7 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
|
||||
fmt!("macro undefined: '%s!'", extnamestr)),
|
||||
|
||||
Some(@SE(NormalTT(expander, span))) => {
|
||||
if it.ident != parse::token::special_idents::invalid {
|
||||
if it.ident.name != parse::token::special_idents::invalid.name {
|
||||
cx.span_fatal(pth.span,
|
||||
fmt!("macro %s! expects no ident argument, \
|
||||
given '%s'", extnamestr,
|
||||
@ -401,7 +401,7 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
|
||||
expander(cx, it.span, tts)
|
||||
}
|
||||
Some(@SE(IdentTT(expander, span))) => {
|
||||
if it.ident == parse::token::special_idents::invalid {
|
||||
if it.ident.name == parse::token::special_idents::invalid.name {
|
||||
cx.span_fatal(pth.span,
|
||||
fmt!("macro %s! expects an ident argument",
|
||||
extnamestr));
|
||||
|
Loading…
Reference in New Issue
Block a user