From e11006986ab1bfc770acb4047814f99f7ca6114f Mon Sep 17 00:00:00 2001 From: Wilco Kusee Date: Sun, 19 Jul 2020 15:26:51 +0200 Subject: Specify default adt representation for chalk integration --- crates/ra_hir_ty/src/traits/chalk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir_ty') diff --git a/crates/ra_hir_ty/src/traits/chalk.rs b/crates/ra_hir_ty/src/traits/chalk.rs index 78d0bc43b..5298dbecf 100644 --- a/crates/ra_hir_ty/src/traits/chalk.rs +++ b/crates/ra_hir_ty/src/traits/chalk.rs @@ -54,7 +54,7 @@ impl<'a> chalk_solve::RustIrDatabase for ChalkContext<'a> { self.db.struct_datum(self.krate, struct_id) } fn adt_repr(&self, _struct_id: AdtId) -> rust_ir::AdtRepr { - unreachable!() + rust_ir::AdtRepr { repr_c: false, repr_packed: false } } fn impl_datum(&self, impl_id: ImplId) -> Arc { self.db.impl_datum(self.krate, impl_id) -- cgit v1.2.3