Skip to content

Commit 18fd6ea

Browse files
Revert "Correctly handle when there are no unstable items in the documented crate"
This reverts commit cd79c71.
1 parent 2c1ac85 commit 18fd6ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustdoc/html/static/js/search.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,9 +2060,7 @@ class DocSearch {
20602060
// Deprecated and unstable items and items with no description
20612061
this.searchIndexDeprecated.set(crate, new RoaringBitmap(crateCorpus.c));
20622062
this.searchIndexEmptyDesc.set(crate, new RoaringBitmap(crateCorpus.e));
2063-
if (crateCorpus.u !== undefined && crateCorpus.u !== null) {
2064-
this.searchIndexUnstable.set(crate, new RoaringBitmap(crateCorpus.u));
2065-
}
2063+
this.searchIndexUnstable.set(crate, new RoaringBitmap(crateCorpus.u));
20662064
let descIndex = 0;
20672065

20682066
/**

0 commit comments

Comments
 (0)