diff options
author | Ekaterina Babshukova <[email protected]> | 2019-10-15 20:50:28 +0100 |
---|---|---|
committer | Ekaterina Babshukova <[email protected]> | 2019-10-22 21:47:31 +0100 |
commit | 55e1910d006da7961687928542c1167cc556a39f (patch) | |
tree | 8440f4a2655ab06884d20180da10134f652d403b /crates/ra_hir | |
parent | 93c179531b31786bfd50644b5f0c879afc798f7d (diff) |
classify module from declaration
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/from_source.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir/src/from_source.rs b/crates/ra_hir/src/from_source.rs index f80d8eb5f..a137aeb90 100644 --- a/crates/ra_hir/src/from_source.rs +++ b/crates/ra_hir/src/from_source.rs | |||
@@ -181,7 +181,6 @@ impl Module { | |||
181 | ) -> Option<Self> { | 181 | ) -> Option<Self> { |
182 | let decl_id = match src.ast { | 182 | let decl_id = match src.ast { |
183 | ModuleSource::Module(ref module) => { | 183 | ModuleSource::Module(ref module) => { |
184 | assert!(!module.has_semi()); | ||
185 | let ast_id_map = db.ast_id_map(src.file_id); | 184 | let ast_id_map = db.ast_id_map(src.file_id); |
186 | let item_id = ast_id_map.ast_id(module).with_file_id(src.file_id); | 185 | let item_id = ast_id_map.ast_id(module).with_file_id(src.file_id); |
187 | Some(item_id) | 186 | Some(item_id) |