Remove exposing unification

This commit is contained in:
adamrk 2020-09-02 22:33:54 +02:00
parent d9bb86ad7d
commit e11cd8fe35
4 changed files with 1 additions and 23 deletions

View file

@ -1118,12 +1118,6 @@ impl Local {
ast.map_left(|it| it.cast().unwrap().to_node(&root)).map_right(|it| it.to_node(&root))
})
}
pub fn can_unify(self, other: Type, db: &dyn HirDatabase) -> bool {
let def = DefWithBodyId::from(self.parent);
let infer = db.infer(def);
db.can_unify(def, infer[self.pat_id].clone(), other.ty.value)
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]