Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/interner.rs')
| -rw-r--r-- | crates/hir-ty/src/interner.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/hir-ty/src/interner.rs b/crates/hir-ty/src/interner.rs index 07197d8a19..479521e8ba 100644 --- a/crates/hir-ty/src/interner.rs +++ b/crates/hir-ty/src/interner.rs @@ -257,12 +257,7 @@ impl chalk_ir::interner::Interner for Interner { c1: &Self::InternedConcreteConst, c2: &Self::InternedConcreteConst, ) -> bool { - match (c1, c2) { - (&ConstScalar::Usize(a), &ConstScalar::Usize(b)) => a == b, - // we were previously assuming this to be true, I'm not whether true or false on - // unknown values is safer. - (_, _) => true, - } + c1 == c2 } fn intern_generic_arg( |