File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
trunk/src/librustdoc/html/static Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a713867c745541e06956c4a3e831ca8539554b37
2
+ refs/heads/master: 94b6ddc37c42bdb9af54c88d8d6562e3eb2a2c62
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
5
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
Original file line number Diff line number Diff line change 36
36
"constant" ,
37
37
"associatedconstant" ] ;
38
38
39
+ // used for special search precedence
40
+ var TY_PRIMITIVE = itemTypes . indexOf ( "primitive" ) ;
41
+
39
42
$ ( '.js-only' ) . removeClass ( 'js-only' ) ;
40
43
41
44
function getQueryStringParams ( ) {
322
325
b = bbb . index ;
323
326
if ( a !== b ) { return a - b ; }
324
327
328
+ // special precedence for primitive pages
329
+ if ( ( aaa . item . ty === TY_PRIMITIVE ) && ( bbb . item . ty !== TY_PRIMITIVE ) ) {
330
+ return - 1 ;
331
+ }
325
332
326
333
// sort by description (no description goes later)
327
334
a = ( aaa . item . desc === '' ) ;
You can’t perform that action at this time.
0 commit comments