mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Fix modules in blocks not resolving in ide layer
This commit is contained in:
parent
5346002d07
commit
91554e0ae7
11 changed files with 183 additions and 33 deletions
|
@ -570,7 +570,7 @@ impl CrateGraph {
|
|||
.arena
|
||||
.iter_mut()
|
||||
.take(m)
|
||||
.find_map(|(id, data)| merge((id, data), (topo, &crate_data)).then_some(id));
|
||||
.find_map(|(id, data)| merge((id, data), (topo, crate_data)).then_some(id));
|
||||
|
||||
let new_id =
|
||||
if let Some(res) = res { res } else { self.arena.alloc(crate_data.clone()) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue