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 @@ -407,7 +407,6 @@ function preLoadCss(cssUrl) {
407407 function loadSearch ( ) {
408408 if ( ! searchLoaded ) {
409409 searchLoaded = true ;
410- // @ts -expect-error
411410 window . rr_ = data => {
412411 window . searchIndex = data ;
413412 } ;
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ declare global {
9595 rustdoc_remove_line_numbers_from_examples ?: function ( ) ,
9696 /** JSON-encoded raw search index */
9797 searchIndex : string,
98+ /** Used in search index shards in order to load data into the in-memory database */
99+ rr_ : function ( string ) ,
98100 }
99101 interface HTMLElement {
100102 /** Used by the popover tooltip code. */
Original file line number Diff line number Diff line change @@ -5245,7 +5245,6 @@ if (typeof window !== "undefined") {
52455245 // this script doesn't need to launch it, but
52465246 // must pick it up
52475247 if ( window . searchIndex ) {
5248- // @ts -ignore
52495248 window . rr_ ( window . searchIndex ) ;
52505249 }
52515250 } ,
You can’t perform that action at this time.
0 commit comments