mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Remove exposing unification
This commit is contained in:
parent
d9bb86ad7d
commit
e11cd8fe35
4 changed files with 1 additions and 23 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue