Skip to content

Commit dc09f15

Browse files
Merge #6076
6076: Update chalk to 0.28.0 r=matklad a=vandenheuvel Co-authored-by: Bram van den Heuvel <[email protected]>
2 parents cfe987b + dff6895 commit dc09f15

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir_ty/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ ena = "0.14.0"
1717
log = "0.4.8"
1818
rustc-hash = "1.1.0"
1919
scoped-tls = "1"
20-
chalk-solve = { version = "0.27.0" }
21-
chalk-ir = { version = "0.27.0" }
22-
chalk-recursive = { version = "0.27.0" }
20+
chalk-solve = { version = "0.28.0" }
21+
chalk-ir = { version = "0.28.0" }
22+
chalk-recursive = { version = "0.28.0" }
2323

2424
stdx = { path = "../stdx", version = "0.0.0" }
2525
hir_def = { path = "../hir_def", version = "0.0.0" }

crates/hir_ty/src/traits/chalk.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,12 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
129129
debug!("impls_for_trait returned {} impls", result.len());
130130
result
131131
}
132-
fn impl_provided_for(&self, auto_trait_id: TraitId, struct_id: AdtId) -> bool {
133-
debug!("impl_provided_for {:?}, {:?}", auto_trait_id, struct_id);
132+
fn impl_provided_for(
133+
&self,
134+
auto_trait_id: TraitId,
135+
application_ty: &chalk_ir::ApplicationTy<Interner>,
136+
) -> bool {
137+
debug!("impl_provided_for {:?}, {:?}", auto_trait_id, application_ty);
134138
false // FIXME
135139
}
136140
fn associated_ty_value(&self, id: AssociatedTyValueId) -> Arc<AssociatedTyValue> {
@@ -422,6 +426,7 @@ fn well_known_trait_from_lang_attr(name: &str) -> Option<WellKnownTrait> {
422426
"fn_mut" => WellKnownTrait::FnMut,
423427
"fn" => WellKnownTrait::Fn,
424428
"unsize" => WellKnownTrait::Unsize,
429+
"coerce_unsized" => WellKnownTrait::CoerceUnsized,
425430
_ => return None,
426431
})
427432
}
@@ -437,6 +442,7 @@ fn lang_attr_from_well_known_trait(attr: WellKnownTrait) -> &'static str {
437442
WellKnownTrait::Fn => "fn",
438443
WellKnownTrait::Unsize => "unsize",
439444
WellKnownTrait::Unpin => "unpin",
445+
WellKnownTrait::CoerceUnsized => "coerce_unsized",
440446
}
441447
}
442448

0 commit comments

Comments
 (0)