Skip to content

Commit c5cc0d9

Browse files
committed
Remove the --all-features tip
Signed-off-by: hi-rustin <[email protected]>
1 parent a4f89ea commit c5cc0d9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cargo/ops/tree/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,11 @@ pub fn build_and_print(ws: &Workspace<'_>, opts: &TreeOptions) -> CargoResult<()
214214
.collect::<CargoResult<Vec<PackageIdSpec>>>()?;
215215

216216
if root_indexes.len() == 0 {
217-
ws.config().shell().warn("nothing to print.\n\n\
217+
ws.config().shell().warn(
218+
"nothing to print.\n\n\
218219
To find dependencies that require specific features or target platforms, \
219-
try use options `--all-features` or `--target all` first, and then narrow your search scope accordingly.")?;
220+
try use options `--target all` first, and then narrow your search scope accordingly.",
221+
)?;
220222
} else {
221223
print(ws.config(), opts, root_indexes, &pkgs_to_prune, &graph)?;
222224
}

tests/testsuite/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ foo v0.1.0 ([..]/foo)
531531
[WARNING] nothing to print.
532532
533533
To find dependencies that require specific features or target platforms, \
534-
try use options `--all-features` or `--target all` first, and then narrow your search scope accordingly.
534+
try use options `--target all` first, and then narrow your search scope accordingly.
535535
",
536536
)
537537
.run();

0 commit comments

Comments
 (0)