aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/code_model.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index afbf78b3b..dc3a1699f 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -1118,12 +1118,6 @@ impl Local {
1118 ast.map_left(|it| it.cast().unwrap().to_node(&root)).map_right(|it| it.to_node(&root)) 1118 ast.map_left(|it| it.cast().unwrap().to_node(&root)).map_right(|it| it.to_node(&root))
1119 }) 1119 })
1120 } 1120 }
1121
1122 pub fn can_unify(self, other: Type, db: &dyn HirDatabase) -> bool {
1123 let def = DefWithBodyId::from(self.parent);
1124 let infer = db.infer(def);
1125 db.can_unify(def, infer[self.pat_id].clone(), other.ty.value)
1126 }
1127} 1121}
1128 1122
1129#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] 1123#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]