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 386386 if ( ( aaa . item . ty === TY_PRIMITIVE ) && ( bbb . item . ty !== TY_PRIMITIVE ) ) {
387387 return - 1 ;
388388 }
389+ if ( ( bbb . item . ty === TY_PRIMITIVE ) && ( aaa . item . ty !== TY_PRIMITIVE ) ) {
390+ return 1 ;
391+ }
389392
390393 // sort by description (no description goes later)
391394 a = ( aaa . item . desc === '' ) ;
572575 displayPath = item . path + '::' ;
573576 href = rootPath + item . path . replace ( / : : / g, '/' ) +
574577 '/index.html' ;
578+ } else if ( type === "primitive" ) {
579+ displayPath = "" ;
580+ href = rootPath + item . path . replace ( / : : / g, '/' ) +
581+ '/' + type + '.' + name + '.html' ;
575582 } else if ( item . parent !== undefined ) {
576583 var myparent = item . parent ;
577584 var anchor = '#' + type + '.' + name ;
You can’t perform that action at this time.
0 commit comments