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 <wilcokusee@gmail.com>
This commit is contained in:
bors[bot] 2020-07-19 13:37:35 +00:00 committed by GitHub
commit 09fab42d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ fn adt_datum(&self, struct_id: AdtId) -> Arc<StructDatum> {
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<ImplDatum> {
self.db.impl_datum(self.krate, impl_id)