add deriving_eq for tokens
auto merge of #5273 : jbclements/rust/a040b8005f37b94f3394cc3c6ab7058717830661, r=brson

Replace the custom eq with #[deriving_eq].