File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,6 @@ function preLoadCss(cssUrl) {
409
409
searchLoaded = true ;
410
410
// @ts -expect-error
411
411
window . rr_ = data => {
412
- // @ts -expect-error
413
412
window . searchIndex = data ;
414
413
} ;
415
414
if ( ! window . StringdexOnload ) {
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ declare global {
93
93
pending_type_impls ?: rustdoc . TypeImpls ,
94
94
rustdoc_add_line_numbers_to_examples ?: function ( ) ,
95
95
rustdoc_remove_line_numbers_from_examples ?: function ( ) ,
96
+ /** JSON-encoded raw search index */
97
+ searchIndex : string,
96
98
}
97
99
interface HTMLElement {
98
100
/** Used by the popover tooltip code. */
Original file line number Diff line number Diff line change @@ -5244,7 +5244,6 @@ if (typeof window !== "undefined") {
5244
5244
// search.index/root is loaded by main.js, so
5245
5245
// this script doesn't need to launch it, but
5246
5246
// must pick it up
5247
- // @ts -ignore
5248
5247
if ( window . searchIndex ) {
5249
5248
// @ts -ignore
5250
5249
window . rr_ ( window . searchIndex ) ;
You can’t perform that action at this time.
0 commit comments