File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 465
465
var res = buildHrefAndPath ( obj ) ;
466
466
obj . displayPath = pathSplitter ( res [ 0 ] ) ;
467
467
obj . fullPath = obj . displayPath + obj . name ;
468
- if ( obj . ty === TY_KEYWORD ) {
469
- // To be sure than it isn't considered as duplicate with items.
470
- obj . fullPath += '|k' ;
471
- }
468
+ // To be sure than it some items aren't considered as duplicate.
469
+ obj . fullPath += '|' + obj . ty ;
472
470
obj . href = res [ 1 ] ;
473
471
out . push ( obj ) ;
474
472
if ( out . length >= MAX_RESULTS ) {
Original file line number Diff line number Diff line change
1
+ // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // ignore-order
12
+
13
+ const QUERY = 'panic' ;
14
+
15
+ const EXPECTED = {
16
+ 'others' : [
17
+ { 'path' : 'std' , 'name' : 'panic' , ty : 14 } , // 15 is for macros
18
+ { 'path' : 'std' , 'name' : 'panic' , ty : 0 } , // 0 is for modules
19
+ ] ,
20
+ } ;
You can’t perform that action at this time.
0 commit comments