Merge #2047
2047: restore assert r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
195272270b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user