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/Cargo.toml | 6 +++--- crates/hir_ty/src/traits/chalk.rs | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'crates/hir_ty') diff --git a/crates/hir_ty/Cargo.toml b/crates/hir_ty/Cargo.toml index bc86df2b1..03215be44 100644 --- a/crates/hir_ty/Cargo.toml +++ b/crates/hir_ty/Cargo.toml @@ -17,9 +17,9 @@ ena = "0.14.0" log = "0.4.8" rustc-hash = "1.1.0" scoped-tls = "1" -chalk-solve = { version = "0.27.0" } -chalk-ir = { version = "0.27.0" } -chalk-recursive = { version = "0.27.0" } +chalk-solve = { version = "0.28.0" } +chalk-ir = { version = "0.28.0" } +chalk-recursive = { version = "0.28.0" } stdx = { path = "../stdx", version = "0.0.0" } hir_def = { path = "../hir_def", version = "0.0.0" } 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