@@ -352,7 +352,7 @@ foo v0.1.0 ([ROOT]/foo)
352352}
353353
354354#[ cargo_test( nightly, reason = "exported_private_dependencies lint is unstable" ) ]
355- fn depth_public_no_features ( ) {
355+ fn edge_public_no_features ( ) {
356356 Package :: new ( "pub-defaultdep" , "1.0.0" ) . publish ( ) ;
357357 Package :: new ( "priv-defaultdep" , "1.0.0" ) . publish ( ) ;
358358
@@ -374,9 +374,9 @@ fn depth_public_no_features() {
374374 . file ( "src/lib.rs" , "" )
375375 . build ( ) ;
376376
377- p. cargo ( "tree -e features --depth public" )
377+ p. cargo ( "tree -e features --edges public" )
378378 . arg ( "-Zunstable-options" )
379- . masquerade_as_nightly_cargo ( & [ "public-dependency" , "depth -public" ] )
379+ . masquerade_as_nightly_cargo ( & [ "public-dependency" , "edge -public" ] )
380380 . with_stdout_data ( str![ [ r#"
381381foo v0.1.0 ([ROOT]/foo)
382382└── pub-defaultdep feature "default"
@@ -387,7 +387,7 @@ foo v0.1.0 ([ROOT]/foo)
387387}
388388
389389#[ cargo_test( nightly, reason = "exported_private_dependencies lint is unstable" ) ]
390- fn depth_public_transitive_features ( ) {
390+ fn edge_public_transitive_features ( ) {
391391 Package :: new ( "pub-defaultdep" , "1.0.0" )
392392 . feature ( "default" , & [ "f1" ] )
393393 . feature ( "f1" , & [ "f2" ] )
@@ -423,19 +423,19 @@ fn depth_public_transitive_features() {
423423 . file ( "src/lib.rs" , "" )
424424 . build ( ) ;
425425
426- p. cargo ( "tree -e features --depth public" )
426+ p. cargo ( "tree -e features --edges public" )
427427 . arg ( "-Zunstable-options" )
428- . masquerade_as_nightly_cargo ( & [ "public-dependency" , "depth -public" ] )
428+ . masquerade_as_nightly_cargo ( & [ "public-dependency" , "edge -public" ] )
429429 . with_stdout_data ( str![ [ r#"
430430foo v0.1.0 ([ROOT]/foo)
431431├── priv-defaultdep feature "default"
432432│ ├── priv-defaultdep v1.0.0
433433│ └── priv-defaultdep feature "f1"
434- │ ├── priv-defaultdep v1.0.0 (*)
434+ │ ├── priv-defaultdep v1.0.0
435435│ └── priv-defaultdep feature "f2"
436- │ ├── priv-defaultdep v1.0.0 (*)
436+ │ ├── priv-defaultdep v1.0.0
437437│ └── priv-defaultdep feature "optdep"
438- │ └── priv-defaultdep v1.0.0 (*)
438+ │ └── priv-defaultdep v1.0.0
439439└── pub-defaultdep feature "default"
440440 ├── pub-defaultdep v1.0.0
441441 │ └── optdep feature "default"
@@ -454,7 +454,7 @@ foo v0.1.0 ([ROOT]/foo)
454454}
455455
456456#[ cargo_test( nightly, reason = "exported_private_dependencies lint is unstable" ) ]
457- fn depth_public_cli ( ) {
457+ fn edge_public_cli ( ) {
458458 Package :: new ( "priv" , "1.0.0" ) . feature ( "f" , & [ ] ) . publish ( ) ;
459459 Package :: new ( "pub" , "1.0.0" ) . feature ( "f" , & [ ] ) . publish ( ) ;
460460
@@ -482,18 +482,18 @@ fn depth_public_cli() {
482482 . file ( "src/lib.rs" , "" )
483483 . build ( ) ;
484484
485- p. cargo ( "tree -e features --depth public" )
485+ p. cargo ( "tree -e features --edges public" )
486486 . arg ( "-Zunstable-options" )
487- . masquerade_as_nightly_cargo ( & [ "public-dependency" , "depth -public" ] )
487+ . masquerade_as_nightly_cargo ( & [ "public-dependency" , "edge -public" ] )
488488 . with_stdout_data ( str![ [ r#"
489489foo v0.1.0 ([ROOT]/foo)
490490
491491"# ] ] )
492492 . run ( ) ;
493493
494- p. cargo ( "tree -e features --depth public --features pub-indirect" )
494+ p. cargo ( "tree -e features --edges public --features pub-indirect" )
495495 . arg ( "-Zunstable-options" )
496- . masquerade_as_nightly_cargo ( & [ "public-dependency" , "depth -public" ] )
496+ . masquerade_as_nightly_cargo ( & [ "public-dependency" , "edge -public" ] )
497497 . with_stdout_data ( str![ [ r#"
498498foo v0.1.0 ([ROOT]/foo)
499499└── pub feature "default"
@@ -502,9 +502,9 @@ foo v0.1.0 ([ROOT]/foo)
502502"# ] ] )
503503 . run ( ) ;
504504
505- p. cargo ( "tree -e features --depth public --features priv-indirect" )
505+ p. cargo ( "tree -e features --edges public --features priv-indirect" )
506506 . arg ( "-Zunstable-options" )
507- . masquerade_as_nightly_cargo ( & [ "public-dependency" , "depth -public" ] )
507+ . masquerade_as_nightly_cargo ( & [ "public-dependency" , "edge -public" ] )
508508 . with_stdout_data ( str![ [ r#"
509509foo v0.1.0 ([ROOT]/foo)
510510
0 commit comments