@@ -1895,21 +1895,23 @@ function getSearchElement() {
1895
1895
var implementors = document . getElementById ( "implementors-list" ) ;
1896
1896
var synthetic_implementors = document . getElementById ( "synthetic-implementors-list" ) ;
1897
1897
1898
- // This `inlined_types` variable is used to avoid having the same implementation showing
1899
- // up twice. For example "String" in the "Sync" doc page.
1900
- //
1901
- // By the way, this is only used by and useful for traits implemented automatically (like
1902
- // "Send" and "Sync").
1903
- var inlined_types = new Set ( ) ;
1904
- onEachLazy ( synthetic_implementors . getElementsByClassName ( "impl" ) , function ( el ) {
1905
- var aliases = el . getAttribute ( "aliases" ) ;
1906
- if ( ! aliases ) {
1907
- return ;
1908
- }
1909
- aliases . split ( "," ) . forEach ( function ( alias ) {
1910
- inlined_types . add ( alias ) ;
1898
+ if ( synthetic_implementors ) {
1899
+ // This `inlined_types` variable is used to avoid having the same implementation
1900
+ // showing up twice. For example "String" in the "Sync" doc page.
1901
+ //
1902
+ // By the way, this is only used by and useful for traits implemented automatically
1903
+ // (like "Send" and "Sync").
1904
+ var inlined_types = new Set ( ) ;
1905
+ onEachLazy ( synthetic_implementors . getElementsByClassName ( "impl" ) , function ( el ) {
1906
+ var aliases = el . getAttribute ( "aliases" ) ;
1907
+ if ( ! aliases ) {
1908
+ return ;
1909
+ }
1910
+ aliases . split ( "," ) . forEach ( function ( alias ) {
1911
+ inlined_types . add ( alias ) ;
1912
+ } ) ;
1911
1913
} ) ;
1912
- } ) ;
1914
+ }
1913
1915
1914
1916
var libs = Object . getOwnPropertyNames ( imp ) ;
1915
1917
var llength = libs . length ;
0 commit comments