Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer.rs')
| -rw-r--r-- | crates/hir-ty/src/infer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs index ecadfb6ce4..c7c8deaaee 100644 --- a/crates/hir-ty/src/infer.rs +++ b/crates/hir-ty/src/infer.rs @@ -605,10 +605,10 @@ impl<'a> InferenceContext<'a> { let data = c.data(Interner); match data.value { ConstValue::Concrete(cc) => match cc.interned { - hir_def::type_ref::ConstScalar::Usize(_) => c, hir_def::type_ref::ConstScalar::Unknown => { self.table.new_const_var(data.ty.clone()) } + _ => c, }, _ => c, } |