pub fn token_name_eq(t1 : &Token, t2 : &Token) -> bool {
    match (t1,t2) {
        (&token::IDENT(id1,_),&token::IDENT(id2,_)) =>
        id1.name == id2.name,
        _ => *t1 == *t2
    }
}
// perform a token equality check, ignoring syntax context (that is, an unhygienic comparison)
perform a token equality check, ignoring syntax context (that is, an unhygienic comparison)
perform a token equality check ignoring syntax context ( that is an unhygienic comparison )
pub fn token_name_eq(t1 : &Token, t2 : &Token) -> bool {
    match (t1,t2) {
        (&token::IDENT(id1,_),&token::IDENT(id2,_)) =>
        id1.name == id2.name,
        _ => *t1 == *t2
    }
}
pub fn token_name_eq ( t1 : & Token , t2 : & Token ) -> bool { match ( t1 , t2 ) { ( & token :: IDENT ( id1 , _ ) , & token :: IDENT ( id2 , _ ) ) => id1 . name == id2 . name , _ => * t1 == * t2 } }
perform a token equality check, ignoring syntax context (that is, an unhygienic comparison)
perform a token equality check ignoring syntax context ( that is an unhygienic comparison )
t1
&Token
t2
&Token
t1
&Token
t2
&Token