@@ -2658,22 +2658,25 @@ fn warn_package_togother_with_workspace() {
26582658 // baz is present in the workspace and it is a real existing package.
26592659 p. cargo ( "check --package baz --workspace" )
26602660 . with_stderr_data ( str![ [ r#"
2661- [CHECKING] foo v0.1.0 ([ROOT]/foo)
2661+ [WARNING] ignoring `--package` as the `--workspace` or `--all` flag is set
26622662[CHECKING] baz v0.1.0 ([ROOT]/foo/baz)
2663+ [CHECKING] foo v0.1.0 ([ROOT]/foo)
26632664[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
26642665
26652666"# ] ] )
26662667 . run ( ) ;
26672668
26682669 p. cargo ( "check --package nonexistence --workspace" )
26692670 . with_stderr_data ( str![ [ r#"
2671+ [WARNING] ignoring `--package` as the `--workspace` or `--all` flag is set
26702672[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
26712673
26722674"# ] ] )
26732675 . run ( ) ;
26742676
26752677 p. cargo ( "package --package nonexistence --workspace" )
26762678 . with_stderr_data ( str![ [ r#"
2679+ [WARNING] ignoring `--package` as the `--workspace` or `--all` flag is set
26772680[WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
26782681See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
26792682[PACKAGING] baz v0.1.0 ([ROOT]/foo/baz)
@@ -2694,6 +2697,7 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
26942697
26952698 p. cargo ( "publish --dry-run --package nonexistence -Zpackage-workspace --workspace" )
26962699 . with_stderr_data ( str![ [ r#"
2700+ [WARNING] ignoring `--package` as the `--workspace` or `--all` flag is set
26972701[UPDATING] crates.io index
26982702[WARNING] crate [email protected] already exists on crates.io index 26992703[WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
@@ -2720,6 +2724,9 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
27202724 . run ( ) ;
27212725
27222726 p. cargo ( "tree --package nonexistence --workspace" )
2723- . with_stderr_data ( str ![ ] )
2727+ . with_stderr_data ( str![ [ r#"
2728+ [WARNING] ignoring `--package` as the `--workspace` or `--all` flag is set
2729+
2730+ "# ] ] )
27242731 . run ( ) ;
27252732}
0 commit comments