Skip to content

Commit

Permalink
Merge #6899
Browse files Browse the repository at this point in the history
6899: Exclude more stdlib parts from the index r=vlad20012 a=vlad20012

This removes extra files from search.

Additionally, `libc-test` exclusion fixes some test failures on the old Rust 1.32.0.

Co-authored-by: vlad20012 <beskvlad@gmail.com>
  • Loading branch information
bors[bot] and vlad20012 committed Feb 27, 2021
2 parents 4712e93 + 804d67b commit 6ae43d1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ private fun makeStdlibLibrary(packages: List<CargoWorkspace.Package>, rustcVersi
}

for (root in sourceRoots) {
excludedRoots += listOfNotNull(root.findChild("tests"), root.findChild("benches"))
excludedRoots += listOfNotNull(
root.findChild("tests"),
root.findChild("benches"),
root.findChild("examples"),
root.findChild("ci"), // From `backtrace`
root.findChild(".github"), // From `backtrace`
root.findChild("libc-test") // From Rust 1.32.0 `liblibc`
)
}

val version = rustcVersion?.semver?.parsedVersion
Expand Down

0 comments on commit 6ae43d1

Please sign in to comment.