Skip to content

Commit

Permalink
Add --future-incompat-report support to cargo test
Browse files Browse the repository at this point in the history
This was missed in the original PR
  • Loading branch information
Aaron1011 committed Mar 14, 2021
1 parent 32da9ea commit 63ed725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bin/cargo/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub fn cli() -> App {
.arg_ignore_rust_version()
.arg_message_format()
.arg_unit_graph()
.arg_future_incompat_report()
.after_help("Run `cargo help test` for more detailed information.\n")
}

Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/future_incompat_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn test_single_crate() {
.file("src/main.rs", "fn main() { [true].into_iter(); }")
.build();

for command in &["build", "check", "rustc"] {
for command in &["build", "check", "rustc", "test"] {
p.cargo(command).arg("-Zfuture-incompat-report")
.masquerade_as_nightly_cargo()
.with_stderr_contains(" = note: `#[warn(array_into_iter)]` on by default")
Expand Down Expand Up @@ -108,7 +108,7 @@ fn test_multi_crate() {
.file("src/main.rs", "fn main() {}")
.build();

for command in &["build", "check", "rustc"] {
for command in &["build", "check", "rustc", "test"] {
p.cargo(command).arg("-Zfuture-incompat-report")
.masquerade_as_nightly_cargo()
.with_stderr_does_not_contain("[..]array_into_iter[..]")
Expand Down

0 comments on commit 63ed725

Please sign in to comment.