mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Use pointer eq/hash for SourceIdInner
This commit is contained in:
parent
a73c5171f8
commit
ea87ca3e98
@ -337,11 +337,11 @@ impl SourceId {
|
||||
}
|
||||
|
||||
pub fn full_eq(&self, other: &SourceId) -> bool {
|
||||
self.inner == other.inner
|
||||
ptr::eq(self.inner, other.inner)
|
||||
}
|
||||
|
||||
pub fn full_hash<S: hash::Hasher>(&self, into: &mut S) {
|
||||
self.inner.hash(into)
|
||||
(self.inner as *const SourceIdInner).hash(into)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user