mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Merge #6076
6076: Update chalk to 0.28.0 r=matklad a=vandenheuvel Co-authored-by: Bram van den Heuvel <bram@vandenheuvel.online>
This commit is contained in:
commit
dc09f1597f
3 changed files with 19 additions and 13 deletions
|
@ -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" }
|
||||
|
|
|
@ -129,8 +129,12 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> 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<Interner>,
|
||||
) -> bool {
|
||||
debug!("impl_provided_for {:?}, {:?}", auto_trait_id, application_ty);
|
||||
false // FIXME
|
||||
}
|
||||
fn associated_ty_value(&self, id: AssociatedTyValueId) -> Arc<AssociatedTyValue> {
|
||||
|
@ -422,6 +426,7 @@ fn well_known_trait_from_lang_attr(name: &str) -> Option<WellKnownTrait> {
|
|||
"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",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue