Skip to content

Commit b23d14d

Browse files
committed
---
yaml --- r: 208895 b: refs/heads/master c: 94b6ddc h: refs/heads/master i: 208893: 061424a 208891: 69dac97 208887: 3632470 208879: 0590b00 208863: 23426ab 208831: ff0c884 208767: 046eba4 208639: 355375a 208383: 74daaa9 207871: db5c917 206847: b251e25 204799: 0c821d1 v: v3
1 parent 46d7cf8 commit b23d14d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a713867c745541e06956c4a3e831ca8539554b37
2+
refs/heads/master: 94b6ddc37c42bdb9af54c88d8d6562e3eb2a2c62
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f

trunk/src/librustdoc/html/static/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"constant",
3737
"associatedconstant"];
3838

39+
// used for special search precedence
40+
var TY_PRIMITIVE = itemTypes.indexOf("primitive");
41+
3942
$('.js-only').removeClass('js-only');
4043

4144
function getQueryStringParams() {
@@ -322,6 +325,10 @@
322325
b = bbb.index;
323326
if (a !== b) { return a - b; }
324327

328+
// special precedence for primitive pages
329+
if ((aaa.item.ty === TY_PRIMITIVE) && (bbb.item.ty !== TY_PRIMITIVE)) {
330+
return -1;
331+
}
325332

326333
// sort by description (no description goes later)
327334
a = (aaa.item.desc === '');

0 commit comments

Comments
 (0)