diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-23 09:31:41 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-23 09:31:41 +0100 |
commit | 195272270be99c353c9555c9e36c66068434af60 (patch) | |
tree | 1e9995e01055092a6f57106b763cb4d85b5c6de1 /crates/ra_hir/src | |
parent | 4f4fe14fab96c8b40763f9ed5bef51942fd7e504 (diff) | |
parent | 68ea9bd1bfd59fe27a4df4ae9d9b5f52d928d362 (diff) |
Merge #2047
2047: restore assert r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/from_source.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir/src/from_source.rs b/crates/ra_hir/src/from_source.rs index a137aeb90..f80d8eb5f 100644 --- a/crates/ra_hir/src/from_source.rs +++ b/crates/ra_hir/src/from_source.rs | |||
@@ -181,6 +181,7 @@ 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()); | ||
184 | let ast_id_map = db.ast_id_map(src.file_id); | 185 | let ast_id_map = db.ast_id_map(src.file_id); |
185 | let item_id = ast_id_map.ast_id(module).with_file_id(src.file_id); | 186 | let item_id = ast_id_map.ast_id(module).with_file_id(src.file_id); |
186 | Some(item_id) | 187 | Some(item_id) |