From cfa1de72ebb7060a82dbf7a67432047d9ea2288a Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Wed, 26 Dec 2018 17:00:42 +0100 Subject: Implement type variables This will really become necessary when we implement generics, but even now, it allows us to reason 'backwards' to infer types of expressions that we didn't understand for some reason. We use ena, the union-find implementation extracted from rustc, to keep track of type variables. --- crates/ra_hir/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_hir/Cargo.toml') diff --git a/crates/ra_hir/Cargo.toml b/crates/ra_hir/Cargo.toml index 4ec890c73..c3fbd327d 100644 --- a/crates/ra_hir/Cargo.toml +++ b/crates/ra_hir/Cargo.toml @@ -12,6 +12,7 @@ salsa = "0.9.0" rustc-hash = "1.0" parking_lot = "0.7.0" id-arena = "2.0" +ena = "0.11" ra_syntax = { path = "../ra_syntax" } ra_editor = { path = "../ra_editor" } ra_db = { path = "../ra_db" } -- cgit v1.2.3