-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ use cargo::ops::{self, TestOptions}; | |
|
||
pub fn cli() -> Command { | ||
subcommand("bench") | ||
.trailing_var_arg(true) | ||
.about("Execute all benchmarks of a local package") | ||
.arg_quiet() | ||
.arg( | ||
|
@@ -14,7 +13,8 @@ pub fn cli() -> Command { | |
.arg( | ||
Arg::new("args") | ||
.help("Arguments for the bench binary") | ||
.num_args(0..), | ||
.num_args(0..) | ||
.trailing_var_arg(true), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
epage
Author
Contributor
|
||
) | ||
.arg_targets_all( | ||
"Benchmark only this package's library", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FYI, I think this changed behavior. Specifically,
cargo test -- filter
runs documentation tests on beta, but skips them on nightly. IIUC, this is coming from this condition changing; now that the trailing arguments are captured intoargs
here, that test sees them and sets the compile filter toall_test_targets()
, whereas previously the trailing varargs weren't considered for that check.This also changes the help text output to no longer mention the ability to use
--
: