@@ -519,10 +519,9 @@ pub fn dep(name: &str) -> Dependency {
519519pub fn dep_req ( name : & str , req : & str ) -> Dependency {
520520 Dependency :: parse ( name, Some ( req) , registry_loc ( ) ) . unwrap ( )
521521}
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 {
523523 let mut dep = dep_req ( name, req) ;
524524 dep. set_kind ( kind) ;
525- dep. set_public ( public) ;
526525 dep
527526}
528527
@@ -615,8 +614,8 @@ fn meta_test_deep_pretty_print_registry() {
615614 pkg!( ( "bar" , "2.0.0" ) => [ dep_req( "baz" , "=1.0.1" ) ] ) ,
616615 pkg!( ( "baz" , "1.0.2" ) => [ dep_req( "other" , "2" ) ] ) ,
617616 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 ) ] ) ,
620619 pkg!( ( "dep_req" , "1.0.0" ) ) ,
621620 pkg!( ( "dep_req" , "2.0.0" ) ) ,
622621 ] )
@@ -679,14 +678,7 @@ pub fn registry_strategy(
679678 let max_deps = max_versions * ( max_crates * ( max_crates - 1 ) ) / shrinkage;
680679
681680 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 ) ;
690682
691683 fn order_index ( a : Index , b : Index , size : usize ) -> ( usize , usize ) {
692684 let ( a, b) = ( a. index ( size) , b. index ( size) ) ;
@@ -713,7 +705,7 @@ pub fn registry_strategy(
713705 . collect ( ) ;
714706 let len_all_pkgid = list_of_pkgid. len ( ) ;
715707 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 {
717709 let ( a, b) = order_index ( a, b, len_all_pkgid) ;
718710 let ( a, b) = if reverse_alphabetical { ( b, a) } else { ( a, b) } ;
719711 let ( ( dep_name, _) , _) = list_of_pkgid[ a] ;
@@ -743,7 +735,6 @@ pub fn registry_strategy(
743735 // => DepKind::Development, // Development has no impact so don't gen
744736 _ => panic ! ( "bad index for DepKind" ) ,
745737 } ,
746- p,
747738 ) )
748739 }
749740
0 commit comments