@@ -519,10 +519,9 @@ pub fn dep(name: &str) -> Dependency {
519
519
pub fn dep_req ( name : & str , req : & str ) -> Dependency {
520
520
Dependency :: parse ( name, Some ( req) , registry_loc ( ) ) . unwrap ( )
521
521
}
522
- pub fn dep_req_kind ( name : & str , req : & str , kind : DepKind , public : bool ) -> Dependency {
522
+ pub fn dep_req_kind ( name : & str , req : & str , kind : DepKind ) -> Dependency {
523
523
let mut dep = dep_req ( name, req) ;
524
524
dep. set_kind ( kind) ;
525
- dep. set_public ( public) ;
526
525
dep
527
526
}
528
527
@@ -615,8 +614,8 @@ fn meta_test_deep_pretty_print_registry() {
615
614
pkg!( ( "bar" , "2.0.0" ) => [ dep_req( "baz" , "=1.0.1" ) ] ) ,
616
615
pkg!( ( "baz" , "1.0.2" ) => [ dep_req( "other" , "2" ) ] ) ,
617
616
pkg!( ( "baz" , "1.0.1" ) ) ,
618
- pkg!( ( "cat" , "1.0.2" ) => [ dep_req_kind( "other" , "2" , DepKind :: Build , false ) ] ) ,
619
- pkg!( ( "cat" , "1.0.3" ) => [ dep_req_kind( "other" , "2" , DepKind :: Development , false ) ] ) ,
617
+ pkg!( ( "cat" , "1.0.2" ) => [ dep_req_kind( "other" , "2" , DepKind :: Build ) ] ) ,
618
+ pkg!( ( "cat" , "1.0.3" ) => [ dep_req_kind( "other" , "2" , DepKind :: Development ) ] ) ,
620
619
pkg!( ( "dep_req" , "1.0.0" ) ) ,
621
620
pkg!( ( "dep_req" , "2.0.0" ) ) ,
622
621
] )
@@ -679,14 +678,7 @@ pub fn registry_strategy(
679
678
let max_deps = max_versions * ( max_crates * ( max_crates - 1 ) ) / shrinkage;
680
679
681
680
let raw_version_range = ( any :: < Index > ( ) , any :: < Index > ( ) ) ;
682
- let raw_dependency = (
683
- any :: < Index > ( ) ,
684
- any :: < Index > ( ) ,
685
- raw_version_range,
686
- 0 ..=1 ,
687
- Just ( false ) ,
688
- // TODO: ^ this needs to be set back to `any::<bool>()` and work before public & private dependencies can stabilize
689
- ) ;
681
+ let raw_dependency = ( any :: < Index > ( ) , any :: < Index > ( ) , raw_version_range, 0 ..=1 ) ;
690
682
691
683
fn order_index ( a : Index , b : Index , size : usize ) -> ( usize , usize ) {
692
684
let ( a, b) = ( a. index ( size) , b. index ( size) ) ;
@@ -713,7 +705,7 @@ pub fn registry_strategy(
713
705
. collect ( ) ;
714
706
let len_all_pkgid = list_of_pkgid. len ( ) ;
715
707
let mut dependency_by_pkgid = vec ! [ vec![ ] ; len_all_pkgid] ;
716
- for ( a, b, ( c, d) , k, p ) in raw_dependencies {
708
+ for ( a, b, ( c, d) , k) in raw_dependencies {
717
709
let ( a, b) = order_index ( a, b, len_all_pkgid) ;
718
710
let ( a, b) = if reverse_alphabetical { ( b, a) } else { ( a, b) } ;
719
711
let ( ( dep_name, _) , _) = list_of_pkgid[ a] ;
@@ -743,7 +735,6 @@ pub fn registry_strategy(
743
735
// => DepKind::Development, // Development has no impact so don't gen
744
736
_ => panic ! ( "bad index for DepKind" ) ,
745
737
} ,
746
- p,
747
738
) )
748
739
}
749
740
0 commit comments