aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/from_source.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/from_source.rs')
-rw-r--r--crates/ra_hir/src/from_source.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/from_source.rs b/crates/ra_hir/src/from_source.rs
index 6fa947759..5cb222bd3 100644
--- a/crates/ra_hir/src/from_source.rs
+++ b/crates/ra_hir/src/from_source.rs
@@ -93,9 +93,9 @@ impl FromSource for MacroDef {
93 93
94 let module_src = ModuleSource::from_child_node(db, src.as_ref().map(|it| it.syntax())); 94 let module_src = ModuleSource::from_child_node(db, src.as_ref().map(|it| it.syntax()));
95 let module = Module::from_definition(db, InFile::new(src.file_id, module_src))?; 95 let module = Module::from_definition(db, InFile::new(src.file_id, module_src))?;
96 let krate = module.krate().crate_id(); 96 let krate = Some(module.krate().crate_id());
97 97
98 let ast_id = AstId::new(src.file_id, db.ast_id_map(src.file_id).ast_id(&src.value)); 98 let ast_id = Some(AstId::new(src.file_id, db.ast_id_map(src.file_id).ast_id(&src.value)));
99 99
100 let id: MacroDefId = MacroDefId { krate, ast_id, kind }; 100 let id: MacroDefId = MacroDefId { krate, ast_id, kind };
101 Some(MacroDef { id }) 101 Some(MacroDef { id })