aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-19 14:37:35 +0100
committerGitHub <[email protected]>2020-07-19 14:37:35 +0100
commit09fab42d39e69c94a4a4b7f5ae5ad10005290bf2 (patch)
tree87fb9543a6d2ffff78fb3ef9f285683bb8c1fc53
parent130e7632acef435caa9bf56e7333e4c28c7dffc7 (diff)
parente11006986ab1bfc770acb4047814f99f7ca6114f (diff)
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]>
-rw-r--r--crates/ra_hir_ty/src/traits/chalk.rs2
1 files changed, 1 insertions, 1 deletions
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<Interner> for ChalkContext<'a> {
54 self.db.struct_datum(self.krate, struct_id) 54 self.db.struct_datum(self.krate, struct_id)
55 } 55 }
56 fn adt_repr(&self, _struct_id: AdtId) -> rust_ir::AdtRepr { 56 fn adt_repr(&self, _struct_id: AdtId) -> rust_ir::AdtRepr {
57 unreachable!() 57 rust_ir::AdtRepr { repr_c: false, repr_packed: false }
58 } 58 }
59 fn impl_datum(&self, impl_id: ImplId) -> Arc<ImplDatum> { 59 fn impl_datum(&self, impl_id: ImplId) -> Arc<ImplDatum> {
60 self.db.impl_datum(self.krate, impl_id) 60 self.db.impl_datum(self.krate, impl_id)