Remove PartialOrd and Ord from LocalDefId
Implement `Ord`, `PartialOrd` for SpanData
This commit is contained in:
@@ -12,7 +12,7 @@ use std::vec;
|
||||
/// Represents some newtyped `usize` wrapper.
|
||||
///
|
||||
/// Purpose: avoid mixing indexes for different bitvector domains.
|
||||
pub trait Idx: Copy + 'static + Ord + Debug + Hash {
|
||||
pub trait Idx: Copy + 'static + Eq + PartialEq + Debug + Hash {
|
||||
fn new(idx: usize) -> Self;
|
||||
|
||||
fn index(self) -> usize;
|
||||
|
||||
Reference in New Issue
Block a user