Skip to content

Commit

Permalink
Exclude more stdlib parts from the index
Browse files Browse the repository at this point in the history
This removes extra files from search.

Additionally, `libc-test` exclusion fixes
some test failures on the old Rust 1.32.0.
  • Loading branch information
vlad20012 committed Feb 27, 2021
1 parent 4712e93 commit 804d67b
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 804d67b

Please sign in to comment.