diff options
author | Aleksey Kladov <[email protected]> | 2019-10-29 08:15:51 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-29 08:15:51 +0000 |
commit | 77f90caf2deeb6a2d2c8196399fbba61bf0c461d (patch) | |
tree | 09667ecbdcc8b84916c509d3a3d09ab56b5d4aed /crates/ra_hir/src/ids.rs | |
parent | 120000609ab0a0e6a946404d0477f5a0a7107800 (diff) |
start ra_hir_def crate
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 518ea32e9..f141206c6 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs | |||
@@ -264,7 +264,7 @@ pub(crate) trait AstItemDef<N: AstNode>: salsa::InternKey + Clone { | |||
264 | Self::from_ast_id(ctx, item_id) | 264 | Self::from_ast_id(ctx, item_id) |
265 | } | 265 | } |
266 | fn from_ast_id(ctx: LocationCtx<&impl InternDatabase>, ast_id: FileAstId<N>) -> Self { | 266 | fn from_ast_id(ctx: LocationCtx<&impl InternDatabase>, ast_id: FileAstId<N>) -> Self { |
267 | let loc = ItemLoc { module: ctx.module, ast_id: ast_id.with_file_id(ctx.file_id) }; | 267 | let loc = ItemLoc { module: ctx.module, ast_id: AstId::new(ctx.file_id, ast_id) }; |
268 | Self::intern(ctx.db, loc) | 268 | Self::intern(ctx.db, loc) |
269 | } | 269 | } |
270 | fn source(self, db: &impl AstDatabase) -> Source<N> { | 270 | fn source(self, db: &impl AstDatabase) -> Source<N> { |