diff options
author | Aleksey Kladov <[email protected]> | 2019-05-13 17:39:06 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-13 17:39:06 +0100 |
commit | 549728bba87ed8f4375f27bb9a77223bf8f65452 (patch) | |
tree | 7d2711f243047a5e7ee74d7181905a36ae2c033d /crates/ra_hir/src/nameres | |
parent | 033a32f34944d7e07facd900a78db59b35e6698c (diff) |
make AstId untyped
Diffstat (limited to 'crates/ra_hir/src/nameres')
-rw-r--r-- | crates/ra_hir/src/nameres/raw.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_hir/src/nameres/raw.rs b/crates/ra_hir/src/nameres/raw.rs index 43c97a0bf..211e02068 100644 --- a/crates/ra_hir/src/nameres/raw.rs +++ b/crates/ra_hir/src/nameres/raw.rs | |||
@@ -39,7 +39,10 @@ type ImportSource = Either<TreeArc<ast::UseTree>, TreeArc<ast::ExternCrateItem>> | |||
39 | 39 | ||
40 | impl ImportSourcePtr { | 40 | impl ImportSourcePtr { |
41 | fn to_node(self, file: &SourceFile) -> ImportSource { | 41 | fn to_node(self, file: &SourceFile) -> ImportSource { |
42 | self.map(|ptr| ptr.to_node(file).to_owned(), |ptr| ptr.to_node(file).to_owned()) | 42 | self.map( |
43 | |ptr| ptr.to_node(file.syntax()).to_owned(), | ||
44 | |ptr| ptr.to_node(file.syntax()).to_owned(), | ||
45 | ) | ||
43 | } | 46 | } |
44 | } | 47 | } |
45 | 48 | ||