Fix compilation of hir and ide crates
This commit is contained in:
@@ -2223,8 +2223,8 @@ impl Type {
|
|||||||
walk_type(db, self, &mut cb);
|
walk_type(db, self, &mut cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn could_unify_with(&self, other: &Type) -> bool {
|
pub fn could_unify_with(&self, db: &dyn HirDatabase, other: &Type) -> bool {
|
||||||
could_unify(&self.ty, &other.ty)
|
could_unify(db, self.env.clone(), &self.ty, &other.ty)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ fn compute_type_match(
|
|||||||
|
|
||||||
if completion_ty == expected_type {
|
if completion_ty == expected_type {
|
||||||
Some(CompletionRelevanceTypeMatch::Exact)
|
Some(CompletionRelevanceTypeMatch::Exact)
|
||||||
} else if expected_type.could_unify_with(completion_ty) {
|
} else if expected_type.could_unify_with(ctx.db, completion_ty) {
|
||||||
Some(CompletionRelevanceTypeMatch::CouldUnify)
|
Some(CompletionRelevanceTypeMatch::CouldUnify)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|||||||
Reference in New Issue
Block a user