mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Check Fileid in SourceFileMap
This commit is contained in:
parent
13100da7a2
commit
159525b120
5 changed files with 23 additions and 7 deletions
|
@ -280,7 +280,7 @@ impl ModuleSource {
|
|||
) -> ModuleSource {
|
||||
assert!(!m.has_semi());
|
||||
let file_items = db.file_items(file_id);
|
||||
let item_id = file_items.id_of(m.syntax());
|
||||
let item_id = file_items.id_of(file_id, m.syntax());
|
||||
ModuleSource::new(file_id, item_id)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue