From b567a67d5ce61cd02872d0003603b21c042373e8 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 14 Aug 2023 13:37:43 +0100 Subject: [PATCH] test: bypass `rustc --test` impl details for `-Zfuture-incompat-test` Switch to an empty `lib.rs` from `main.rs`. See https://github.com/rust-lang/rust/issues/114804#issuecomment-1677233355 --- tests/testsuite/future_incompat_report.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/future_incompat_report.rs b/tests/testsuite/future_incompat_report.rs index 9f451a64c6b..4d2c66d17f3 100644 --- a/tests/testsuite/future_incompat_report.rs +++ b/tests/testsuite/future_incompat_report.rs @@ -164,7 +164,7 @@ fn test_multi_crate() { second-dep = "*" "#, ) - .file("src/main.rs", "fn main() {}") + .file("src/lib.rs", "") .build(); for command in &["build", "check", "rustc", "test"] {