mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
restore assert
This commit is contained in:
parent
4f4fe14fab
commit
68ea9bd1bf
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue