diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-14 13:02:40 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-14 13:02:40 +0200 |
| commit | 18fd6eab3a14fa86fca32b3884811aa1f8d29fea (patch) | |
| tree | d946dd79b2df6dffffd1142a4f5715774dc6326d /src/librustdoc/html/static/js | |
| parent | 2c1ac85679678dfe5cce7ea8037735b0349ceaf3 (diff) | |
| download | rust-18fd6eab3a14fa86fca32b3884811aa1f8d29fea.tar.gz rust-18fd6eab3a14fa86fca32b3884811aa1f8d29fea.zip | |
Revert "Correctly handle when there are no unstable items in the documented crate"
This reverts commit cd79c7189db7b611f9199fd12ba56563afa18642.
Diffstat (limited to 'src/librustdoc/html/static/js')
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 0011544d16e..10e01b4e262 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -2060,9 +2060,7 @@ class DocSearch { // Deprecated and unstable items and items with no description this.searchIndexDeprecated.set(crate, new RoaringBitmap(crateCorpus.c)); this.searchIndexEmptyDesc.set(crate, new RoaringBitmap(crateCorpus.e)); - if (crateCorpus.u !== undefined && crateCorpus.u !== null) { - this.searchIndexUnstable.set(crate, new RoaringBitmap(crateCorpus.u)); - } + this.searchIndexUnstable.set(crate, new RoaringBitmap(crateCorpus.u)); let descIndex = 0; /** |
