diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-10 23:29:04 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-10 23:29:04 +0100 |
commit | beb755caa2b1d7265da7d3367af3b49039dfe00e (patch) | |
tree | c7f96c8f170c43d4a65451e089783ba6550ca020 /crates/ra_hir_expand | |
parent | ca9a5dd1654cc0d54ed5b2bb71ec8ed559470276 (diff) | |
parent | c1244c853c6bdc42bf91a77768963c0d287093ff (diff) |
Merge #3937
3937: Forward compat r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/src/ast_id_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_expand/src/ast_id_map.rs b/crates/ra_hir_expand/src/ast_id_map.rs index 5643ecdce..a3ca302c2 100644 --- a/crates/ra_hir_expand/src/ast_id_map.rs +++ b/crates/ra_hir_expand/src/ast_id_map.rs | |||
@@ -90,7 +90,7 @@ impl AstIdMap { | |||
90 | } | 90 | } |
91 | 91 | ||
92 | pub(crate) fn get<N: AstNode>(&self, id: FileAstId<N>) -> AstPtr<N> { | 92 | pub(crate) fn get<N: AstNode>(&self, id: FileAstId<N>) -> AstPtr<N> { |
93 | self.arena[id.raw].cast::<N>().unwrap() | 93 | self.arena[id.raw].clone().cast::<N>().unwrap() |
94 | } | 94 | } |
95 | 95 | ||
96 | fn alloc(&mut self, item: &SyntaxNode) -> ErasedFileAstId { | 96 | fn alloc(&mut self, item: &SyntaxNode) -> ErasedFileAstId { |