File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1427,7 +1427,7 @@ impl<'a> Cache {
1427
1427
}
1428
1428
if let Some ( ref item_name) = item. name {
1429
1429
let path = self . paths . get ( & item. def_id )
1430
- . map ( |p| p. 0 . join ( "::" ) . to_string ( ) )
1430
+ . map ( |p| p. 0 [ ..p . 0 . len ( ) - 1 ] . join ( "::" ) )
1431
1431
. unwrap_or ( "std" . to_owned ( ) ) ;
1432
1432
for alias in item. attrs . lists ( "doc" )
1433
1433
. filter ( |a| a. check_name ( "alias" ) )
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ // ignore-order
12
+
11
13
const QUERY = '+' ;
12
14
13
15
const EXPECTED = {
14
16
'others' : [
15
- { 'path' : 'std::ops::AddAssign ' , 'name' : 'AddAssign' } ,
16
- { 'path' : 'std::ops::Add ' , 'name' : 'Add' } ,
17
+ { 'path' : 'std::ops' , 'name' : 'AddAssign' } ,
18
+ { 'path' : 'std::ops' , 'name' : 'Add' } ,
17
19
] ,
18
20
} ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const QUERY = '[';
13
13
const EXPECTED = {
14
14
'others' : [
15
15
{ 'path' : 'std' , 'name' : 'slice' } ,
16
- { 'path' : 'std::ops::IndexMut ' , 'name' : 'IndexMut' } ,
17
- { 'path' : 'std::ops::Index ' , 'name' : 'Index' } ,
16
+ { 'path' : 'std::ops' , 'name' : 'IndexMut' } ,
17
+ { 'path' : 'std::ops' , 'name' : 'Index' } ,
18
18
] ,
19
19
} ;
You can’t perform that action at this time.
0 commit comments