File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 386
386
if ( ( aaa . item . ty === TY_PRIMITIVE ) && ( bbb . item . ty !== TY_PRIMITIVE ) ) {
387
387
return - 1 ;
388
388
}
389
+ if ( ( bbb . item . ty === TY_PRIMITIVE ) && ( aaa . item . ty !== TY_PRIMITIVE ) ) {
390
+ return 1 ;
391
+ }
389
392
390
393
// sort by description (no description goes later)
391
394
a = ( aaa . item . desc === '' ) ;
572
575
displayPath = item . path + '::' ;
573
576
href = rootPath + item . path . replace ( / : : / g, '/' ) +
574
577
'/index.html' ;
578
+ } else if ( type === "primitive" ) {
579
+ displayPath = "" ;
580
+ href = rootPath + item . path . replace ( / : : / g, '/' ) +
581
+ '/' + type + '.' + name + '.html' ;
575
582
} else if ( item . parent !== undefined ) {
576
583
var myparent = item . parent ;
577
584
var anchor = '#' + type + '.' + name ;
You can’t perform that action at this time.
0 commit comments