diff options
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index d4d6b1759..8ffb9e99b 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -815,7 +815,7 @@ pub struct MacroDef { | |||
815 | impl MacroDef { | 815 | impl MacroDef { |
816 | /// FIXME: right now, this just returns the root module of the crate that | 816 | /// FIXME: right now, this just returns the root module of the crate that |
817 | /// defines this macro. The reasons for this is that macros are expanded | 817 | /// defines this macro. The reasons for this is that macros are expanded |
818 | /// early, in `ra_hir_expand`, where modules simply do not exist yet. | 818 | /// early, in `hir_expand`, where modules simply do not exist yet. |
819 | pub fn module(self, db: &dyn HirDatabase) -> Option<Module> { | 819 | pub fn module(self, db: &dyn HirDatabase) -> Option<Module> { |
820 | let krate = self.id.krate?; | 820 | let krate = self.id.krate?; |
821 | let module_id = db.crate_def_map(krate).root; | 821 | let module_id = db.crate_def_map(krate).root; |