]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_ty/src/lib.rs
Add lowering of array lengths in types
[rust.git] / crates / hir_ty / src / lib.rs
index 0505fa4aeaf730942e45d2e37ed9cf1de1a8eb73..be3f55bdf3e76f1041aa40a58c0161223c0b0ec7 100644 (file)
@@ -37,7 +37,11 @@ macro_rules! eprintln {
     interner::HasInterner,
     UintTy,
 };
-use hir_def::{expr::ExprId, type_ref::Rawness, TypeParamId};
+use hir_def::{
+    expr::ExprId,
+    type_ref::{ConstScalar, Rawness},
+    TypeParamId,
+};
 
 use crate::{db::HirDatabase, display::HirDisplay, utils::generics};
 
@@ -250,7 +254,9 @@ pub fn dummy_usize_const() -> Const {
     let usize_ty = chalk_ir::TyKind::Scalar(Scalar::Uint(UintTy::Usize)).intern(&Interner);
     chalk_ir::ConstData {
         ty: usize_ty,
-        value: chalk_ir::ConstValue::Concrete(chalk_ir::ConcreteConst { interned: () }),
+        value: chalk_ir::ConstValue::Concrete(chalk_ir::ConcreteConst {
+            interned: ConstScalar::Unknown,
+        }),
     }
     .intern(&Interner)
 }