Skip to content

Commit bbda175

Browse files
committed
Auto merge of #9264 - Aaron1011:future-incompat-report-test-cmd, r=alexcrichton
Add `--future-incompat-report` support to `cargo test` This was missed in the original PR
2 parents 5c8922e + 63ed725 commit bbda175

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/bin/cargo/commands/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub fn cli() -> App {
5656
.arg_ignore_rust_version()
5757
.arg_message_format()
5858
.arg_unit_graph()
59+
.arg_future_incompat_report()
5960
.after_help("Run `cargo help test` for more detailed information.\n")
6061
}
6162

tests/testsuite/future_incompat_report.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn test_single_crate() {
6262
.file("src/main.rs", "fn main() { [true].into_iter(); }")
6363
.build();
6464

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

111-
for command in &["build", "check", "rustc"] {
111+
for command in &["build", "check", "rustc", "test"] {
112112
p.cargo(command).arg("-Zfuture-incompat-report")
113113
.masquerade_as_nightly_cargo()
114114
.with_stderr_does_not_contain("[..]array_into_iter[..]")

0 commit comments

Comments
 (0)