From dff6895ce885e5863d77b88572072d92b47b5e43 Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Fri, 25 Sep 2020 13:59:18 +0200 Subject: Update chalk to 0.28.0 --- crates/hir_ty/src/traits/chalk.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/traits') diff --git a/crates/hir_ty/src/traits/chalk.rs b/crates/hir_ty/src/traits/chalk.rs index 27f0ed628..009b17a7f 100644 --- a/crates/hir_ty/src/traits/chalk.rs +++ b/crates/hir_ty/src/traits/chalk.rs @@ -129,8 +129,12 @@ impl<'a> chalk_solve::RustIrDatabase for ChalkContext<'a> { debug!("impls_for_trait returned {} impls", result.len()); result } - fn impl_provided_for(&self, auto_trait_id: TraitId, struct_id: AdtId) -> bool { - debug!("impl_provided_for {:?}, {:?}", auto_trait_id, struct_id); + fn impl_provided_for( + &self, + auto_trait_id: TraitId, + application_ty: &chalk_ir::ApplicationTy, + ) -> bool { + debug!("impl_provided_for {:?}, {:?}", auto_trait_id, application_ty); false // FIXME } fn associated_ty_value(&self, id: AssociatedTyValueId) -> Arc { @@ -422,6 +426,7 @@ fn well_known_trait_from_lang_attr(name: &str) -> Option { "fn_mut" => WellKnownTrait::FnMut, "fn" => WellKnownTrait::Fn, "unsize" => WellKnownTrait::Unsize, + "coerce_unsized" => WellKnownTrait::CoerceUnsized, _ => return None, }) } @@ -437,6 +442,7 @@ fn lang_attr_from_well_known_trait(attr: WellKnownTrait) -> &'static str { WellKnownTrait::Fn => "fn", WellKnownTrait::Unsize => "unsize", WellKnownTrait::Unpin => "unpin", + WellKnownTrait::CoerceUnsized => "coerce_unsized", } } -- cgit v1.2.3