@@ -419,7 +419,8 @@ pub fn registry_strategy(
419419 any :: < Index > ( ) ,
420420 raw_version_range,
421421 0 ..=1 ,
422- any :: < bool > ( ) ,
422+ Just ( false ) ,
423+ // TODO: ^ this needs to be set back to `any::<bool>()` and work before public & private dependencies can stabilize
423424 ) ;
424425
425426 fn order_index ( a : Index , b : Index , size : usize ) -> ( usize , usize ) {
@@ -458,28 +459,28 @@ pub fn registry_strategy(
458459 let s_last_index = s. len ( ) - 1 ;
459460 let ( c, d) = order_index ( c, d, s. len ( ) ) ;
460461
461- dependency_by_pkgid[ b] . push ( dep_req_kind (
462- & dep_name,
463- & if c == 0 && d == s_last_index {
464- "*" . to_string ( )
465- } else if c == 0 {
466- format ! ( "<={}" , s[ d] . 0 )
467- } else if d == s_last_index {
468- format ! ( ">={}" , s[ c] . 0 )
469- } else if c == d {
470- format ! ( "={}" , s[ c] . 0 )
471- } else {
472- format ! ( ">={}, <={}" , s[ c] . 0 , s[ d] . 0 )
473- } ,
474- match k {
475- 0 => Kind :: Normal ,
476- 1 => Kind :: Build ,
477- // => Kind::Development, // Development has not impact so don't gen
478- _ => panic ! ( "bad index for Kind" ) ,
479- } ,
480- p,
481- ) )
482- }
462+ dependency_by_pkgid[ b] . push ( dep_req_kind (
463+ & dep_name,
464+ & if c == 0 && d == s_last_index {
465+ "*" . to_string ( )
466+ } else if c == 0 {
467+ format ! ( "<={}" , s[ d] . 0 )
468+ } else if d == s_last_index {
469+ format ! ( ">={}" , s[ c] . 0 )
470+ } else if c == d {
471+ format ! ( "={}" , s[ c] . 0 )
472+ } else {
473+ format ! ( ">={}, <={}" , s[ c] . 0 , s[ d] . 0 )
474+ } ,
475+ match k {
476+ 0 => Kind :: Normal ,
477+ 1 => Kind :: Build ,
478+ // => Kind::Development, // Development has no impact so don't gen
479+ _ => panic ! ( "bad index for Kind" ) ,
480+ } ,
481+ p,
482+ ) )
483+ }
483484
484485 PrettyPrintRegistry (
485486 list_of_pkgid
0 commit comments