fix: sort and dedup include paths to prevent VFS issues

This commit is contained in:
Aditya-PS-05
2025-11-23 20:45:57 +05:30
parent eafbc7b406
commit a028fbf641
@@ -844,6 +844,8 @@ pub fn to_roots(&self) -> Vec<PackageRoot> {
exclude.push(pkg_root.join("examples"));
exclude.push(pkg_root.join("benches"));
}
include.sort();
include.dedup();
PackageRoot { is_local, include, exclude }
})
.chain(mk_sysroot())
@@ -905,6 +907,8 @@ pub fn to_roots(&self) -> Vec<PackageRoot> {
exclude.push(pkg_root.join("examples"));
exclude.push(pkg_root.join("benches"));
}
include.sort();
include.dedup();
PackageRoot { is_local, include, exclude }
})
}))