Specify default adt representation for chalk integration

This commit is contained in:
Wilco Kusee 2020-07-19 15:26:51 +02:00
parent 130e7632ac
commit e11006986a
No known key found for this signature in database
GPG Key ID: D5B2BB5CDC3334BC

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)