mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
fix: sort and dedup include paths to prevent VFS issues
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user