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) {
409409 searchLoaded = true ;
410410 // @ts -expect-error
411411 window . rr_ = data => {
412- // @ts -expect-error
413412 window . searchIndex = data ;
414413 } ;
415414 if ( ! window . StringdexOnload ) {
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ declare global {
9393 pending_type_impls ?: rustdoc . TypeImpls ,
9494 rustdoc_add_line_numbers_to_examples ?: function ( ) ,
9595 rustdoc_remove_line_numbers_from_examples ?: function ( ) ,
96+ /** JSON-encoded raw search index */
97+ searchIndex : string,
9698 }
9799 interface HTMLElement {
98100 /** Used by the popover tooltip code. */
Original file line number Diff line number Diff line change @@ -5244,7 +5244,6 @@ if (typeof window !== "undefined") {
52445244 // search.index/root is loaded by main.js, so
52455245 // this script doesn't need to launch it, but
52465246 // must pick it up
5247- // @ts -ignore
52485247 if ( window . searchIndex ) {
52495248 // @ts -ignore
52505249 window . rr_ ( window . searchIndex ) ;
You can’t perform that action at this time.
0 commit comments