From 9fbba7bc45ec6bea9468931d9d9fdd0141826f0a Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 6 Apr 2021 11:45:41 +0200 Subject: Add chalk_ir::Const to TyKind::Array --- crates/hir_ty/src/lower.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/lower.rs') diff --git a/crates/hir_ty/src/lower.rs b/crates/hir_ty/src/lower.rs index df6619af3..8be1bcddb 100644 --- a/crates/hir_ty/src/lower.rs +++ b/crates/hir_ty/src/lower.rs @@ -27,7 +27,7 @@ use stdx::impl_from; use crate::{ db::HirDatabase, - static_lifetime, to_assoc_type_id, to_chalk_trait_id, to_placeholder_idx, + dummy_usize_const, static_lifetime, to_assoc_type_id, to_chalk_trait_id, to_placeholder_idx, traits::chalk::{Interner, ToChalk}, utils::{ all_super_trait_refs, associated_type_by_name_including_super_traits, generics, @@ -166,7 +166,7 @@ impl<'a> TyLoweringContext<'a> { } TypeRef::Array(inner) => { let inner_ty = self.lower_ty(inner); - TyKind::Array(inner_ty).intern(&Interner) + TyKind::Array(inner_ty, dummy_usize_const()).intern(&Interner) } TypeRef::Slice(inner) => { let inner_ty = self.lower_ty(inner); -- cgit v1.2.3