Skip to content

Commit

Permalink
Auto merge of #12491 - weihanglo:fix-future-incompat, r=ehuss
Browse files Browse the repository at this point in the history
test: bypass `rustc --test` impl details for `-Zfuture-incompat-test`

Switch to an empty `lib.rs` from `main.rs`.

See rust-lang/rust#114804 (comment)

Closes rust-lang/rust#114804
  • Loading branch information
bors committed Aug 14, 2023
2 parents 7e9de3f + b567a67 commit 18f2b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/future_incompat_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"] {
Expand Down

0 comments on commit 18f2b46

Please sign in to comment.