Fix compilation of hir and ide crates

This commit is contained in:
Florian Diebold 2021-05-15 20:18:54 +02:00
parent b939a6dcac
commit 48c492af7e
2 changed files with 3 additions and 3 deletions

View file

@ -2223,8 +2223,8 @@ impl Type {
walk_type(db, self, &mut cb);
}
pub fn could_unify_with(&self, other: &Type) -> bool {
could_unify(&self.ty, &other.ty)
pub fn could_unify_with(&self, db: &dyn HirDatabase, other: &Type) -> bool {
could_unify(db, self.env.clone(), &self.ty, &other.ty)
}
}