mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-17 02:08:30 +00:00
Fix overlap deduping infinite loop
Fixes: 14276
This commit is contained in:
parent
9fca0a4afe
commit
2691143a67
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ impl ProjectFolders {
|
|||
// maps include paths to indices of the corresponding root
|
||||
let mut include_to_idx = FxHashMap::default();
|
||||
// Find and note down the indices of overlapping roots
|
||||
for (idx, root) in roots.iter().filter(|it| !it.include.is_empty()).enumerate() {
|
||||
for (idx, root) in roots.iter().enumerate().filter(|(_, it)| !it.include.is_empty()) {
|
||||
for include in &root.include {
|
||||
match include_to_idx.entry(include) {
|
||||
Entry::Occupied(e) => {
|
||||
|
|
Loading…
Reference in a new issue