File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1427,7 +1427,7 @@ impl<'a> Cache {
14271427 }
14281428 if let Some ( ref item_name) = item. name {
14291429 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 ( "::" ) )
14311431 . unwrap_or ( "std" . to_owned ( ) ) ;
14321432 for alias in item. attrs . lists ( "doc" )
14331433 . filter ( |a| a. check_name ( "alias" ) )
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11+ // ignore-order
12+
1113const QUERY = '+' ;
1214
1315const EXPECTED = {
1416 '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' } ,
1719 ] ,
1820} ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const QUERY = '[';
1313const EXPECTED = {
1414 'others' : [
1515 { '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' } ,
1818 ] ,
1919} ;
You can’t perform that action at this time.
0 commit comments