aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ids.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-29 08:20:02 +0000
committerGitHub <[email protected]>2019-10-29 08:20:02 +0000
commit4f22d2f3b0852f32c0ba5e4545ec8cc2d986cfcc (patch)
tree09667ecbdcc8b84916c509d3a3d09ab56b5d4aed /crates/ra_hir/src/ids.rs
parent120000609ab0a0e6a946404d0477f5a0a7107800 (diff)
parent77f90caf2deeb6a2d2c8196399fbba61bf0c461d (diff)
Merge #2112
2112: start ra_hir_def crate r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r--crates/ra_hir/src/ids.rs2
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> {