mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 12:59:12 +00:00
internal: Symbol is not PartialOrd
This commit is contained in:
parent
8b5816b4f5
commit
c28b80c321
2 changed files with 5 additions and 15 deletions
|
|
@ -42,18 +42,6 @@ struct TaggedArcPtr {
|
|||
unsafe impl Send for TaggedArcPtr {}
|
||||
unsafe impl Sync for TaggedArcPtr {}
|
||||
|
||||
impl Ord for TaggedArcPtr {
|
||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||
self.as_str().cmp(other.as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for TaggedArcPtr {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
impl TaggedArcPtr {
|
||||
const BOOL_BITS: usize = true as usize;
|
||||
|
||||
|
|
@ -125,7 +113,7 @@ impl TaggedArcPtr {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
#[derive(PartialEq, Eq, Hash)]
|
||||
pub struct Symbol {
|
||||
repr: TaggedArcPtr,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue