@@ -1358,7 +1358,10 @@ pub struct IdMap {
1358
1358
1359
1359
fn init_id_map ( ) -> FxHashMap < String , usize > {
1360
1360
let mut map = FxHashMap :: default ( ) ;
1361
- // This is the list of IDs used by rustdoc templates.
1361
+ // This is the list of IDs used in Javascript.
1362
+ map. insert ( "help" . to_owned ( ) , 1 ) ;
1363
+ // This is the list of IDs used in HTML generated in Rust (including the ones
1364
+ // used in tera template files).
1362
1365
map. insert ( "mainThemeStyle" . to_owned ( ) , 1 ) ;
1363
1366
map. insert ( "themeStyle" . to_owned ( ) , 1 ) ;
1364
1367
map. insert ( "theme-picker" . to_owned ( ) , 1 ) ;
@@ -1375,14 +1378,14 @@ fn init_id_map() -> FxHashMap<String, usize> {
1375
1378
map. insert ( "rustdoc-vars" . to_owned ( ) , 1 ) ;
1376
1379
map. insert ( "sidebar-vars" . to_owned ( ) , 1 ) ;
1377
1380
map. insert ( "copy-path" . to_owned ( ) , 1 ) ;
1378
- map. insert ( "help" . to_owned ( ) , 1 ) ;
1379
1381
map. insert ( "TOC" . to_owned ( ) , 1 ) ;
1380
- map . insert ( "render-detail" . to_owned ( ) , 1 ) ;
1381
- // This is the list of IDs used by rustdoc sections .
1382
+ // This is the list of IDs used by rustdoc sections (but still generated by
1383
+ // rustdoc) .
1382
1384
map. insert ( "fields" . to_owned ( ) , 1 ) ;
1383
1385
map. insert ( "variants" . to_owned ( ) , 1 ) ;
1384
1386
map. insert ( "implementors-list" . to_owned ( ) , 1 ) ;
1385
1387
map. insert ( "synthetic-implementors-list" . to_owned ( ) , 1 ) ;
1388
+ map. insert ( "foreign-impls" . to_owned ( ) , 1 ) ;
1386
1389
map. insert ( "implementations" . to_owned ( ) , 1 ) ;
1387
1390
map. insert ( "trait-implementations" . to_owned ( ) , 1 ) ;
1388
1391
map. insert ( "synthetic-implementations" . to_owned ( ) , 1 ) ;
@@ -1393,6 +1396,10 @@ fn init_id_map() -> FxHashMap<String, usize> {
1393
1396
map. insert ( "provided-methods" . to_owned ( ) , 1 ) ;
1394
1397
map. insert ( "implementors" . to_owned ( ) , 1 ) ;
1395
1398
map. insert ( "synthetic-implementors" . to_owned ( ) , 1 ) ;
1399
+ map. insert ( "trait-implementations-list" . to_owned ( ) , 1 ) ;
1400
+ map. insert ( "synthetic-implementations-list" . to_owned ( ) , 1 ) ;
1401
+ map. insert ( "blanket-implementations-list" . to_owned ( ) , 1 ) ;
1402
+ map. insert ( "deref-methods" . to_owned ( ) , 1 ) ;
1396
1403
map
1397
1404
}
1398
1405
0 commit comments