diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-13 22:04:04 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-13 22:04:04 +0100 |
commit | bebc5c71664a144b9addd357eb503f776f2cf416 (patch) | |
tree | a7e95d622803bd745a93713dbce396be11846543 /crates/ra_hir/src/nameres | |
parent | d7a4ae43f9308f683ddb3ca89104c5eb12d8d6b3 (diff) | |
parent | 549728bba87ed8f4375f27bb9a77223bf8f65452 (diff) |
Merge #1271
1271: make AstId untyped r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 | ||