Skip to content

Commit 09fab42

Browse files
bors[bot]detrumi
andauthored
Merge #5437
5437: Specify default adt representation for chalk integration r=flodiebold a=detrumi Turns out that using the .chalk writer infra causes this line being hit, so let's just return the default representation for now. Co-authored-by: Wilco Kusee <[email protected]>
2 parents 130e763 + e110069 commit 09fab42

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)