Skip to content

Commit

Permalink
Auto merge of #9264 - Aaron1011:future-incompat-report-test-cmd, r=al…
Browse files Browse the repository at this point in the history
…excrichton

Add `--future-incompat-report` support to `cargo test`

This was missed in the original PR
  • Loading branch information
bors committed Mar 15, 2021
2 parents 5c8922e + 63ed725 commit bbda175
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 bbda175

Please sign in to comment.