We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30b43c1 + 9256947 commit c34f3eaCopy full SHA for c34f3ea
src/librustdoc/html/static/main.js
@@ -386,6 +386,9 @@
386
if ((aaa.item.ty === TY_PRIMITIVE) && (bbb.item.ty !== TY_PRIMITIVE)) {
387
return -1;
388
}
389
+ if ((bbb.item.ty === TY_PRIMITIVE) && (aaa.item.ty !== TY_PRIMITIVE)) {
390
+ return 1;
391
+ }
392
393
// sort by description (no description goes later)
394
a = (aaa.item.desc === '');
@@ -572,6 +575,10 @@
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';
582
} else if (item.parent !== undefined) {
583
var myparent = item.parent;
584
var anchor = '#' + type + '.' + name;
0 commit comments