We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7f4a4 commit e7c7f86Copy full SHA for e7c7f86
dsymbol/src/dsymbol/modulecache.d
@@ -107,6 +107,8 @@ struct ModuleCache
107
*/
108
void removeImportPaths(const string[] paths)
109
{
110
+ import std.array : array;
111
+
112
foreach (path; paths[])
113
114
if (!importPaths[].canFind!(a => a.path == path))
@@ -115,7 +117,7 @@ struct ModuleCache
115
117
continue;
116
118
}
119
- foreach (ref importPath; importPaths[].filter!(a => a.path == path))
120
+ foreach (ref importPath; importPaths[].filter!(a => a.path == path).array)
121
importPaths.remove(importPath);
122
123
foreach (cacheEntry; cache[])
0 commit comments