tamer: parse::Token: Remove Eq trait bound

`PartialEq` remains, and is all that is needed.  See previous commit
regarding the removal of this same bound from `Context`.

This can be re-added if it ends up actually being necessary.  But Tokens are
ephemeral and used only in lowering pipelines, using pattern matching.

DEV-11864
main
Mike Gerwitz 2022-05-16 10:05:14 -04:00
parent d87006391e
commit c49d87976d
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ pub type ParseResult<S, T> =
///
/// A token may be a lexeme with associated data,
/// or a more structured object having been lowered from other IRs.
pub trait Token: Display + Debug + PartialEq + Eq {
pub trait Token: Display + Debug + PartialEq {
/// Retrieve the [`Span`] representing the source location of the token.
fn span(&self) -> Span;
}
@ -63,7 +63,7 @@ impl<T: Token> From<T> for Span {
/// This trait exists to disambiguate an otherwise unbounded type for
/// [`From`] conversions,
/// used in the [`Transition`] API to provide greater flexibility.
pub trait Object: Debug + PartialEq + Eq {}
pub trait Object: Debug + PartialEq {}
/// An infallible [`Token`] stream.
///