restore assert

This commit is contained in:
Aleksey Kladov 2019-10-23 11:31:16 +03:00
parent 4f4fe14fab
commit 68ea9bd1bf

View File

@ -181,6 +181,7 @@ impl Module {
) -> Option<Self> {
let decl_id = match src.ast {
ModuleSource::Module(ref module) => {
assert!(!module.has_semi());
let ast_id_map = db.ast_id_map(src.file_id);
let item_id = ast_id_map.ast_id(module).with_file_id(src.file_id);
Some(item_id)