Skip to content

Commit e110069

Browse files
committed
Specify default adt representation for chalk integration
1 parent 130e763 commit e110069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_hir_ty/src/traits/chalk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
5454
self.db.struct_datum(self.krate, struct_id)
5555
}
5656
fn adt_repr(&self, _struct_id: AdtId) -> rust_ir::AdtRepr {
57-
unreachable!()
57+
rust_ir::AdtRepr { repr_c: false, repr_packed: false }
5858
}
5959
fn impl_datum(&self, impl_id: ImplId) -> Arc<ImplDatum> {
6060
self.db.impl_datum(self.krate, impl_id)

0 commit comments

Comments
 (0)