Skip to content

Commit

Permalink
test: bypass rustc --test impl details for -Zfuture-incompat-test
Browse files Browse the repository at this point in the history
Switch to an empty `lib.rs` from `main.rs`.

See rust-lang/rust#114804 (comment)
  • Loading branch information
weihanglo committed Aug 15, 2023
1 parent 3561627 commit bc79751
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 bc79751

Please sign in to comment.