Skip to content

Commit 32c1454

Browse files
authored
Rollup merge of #54680 - RalfJung:compile-pass, r=pnkfelix
make run-pass tests with empty main just compile-pass tests Many run-pass tests have an empty main, so there is not actually any point in running them. This makes them `compile-pass` tests instead, saving some time (generating the binary and then running it). For now I did this only for `run-pass/issues`; if there is interest I can also do it for the other directories. I used `^\s*fn\s+main\(\s*\)\s*\{\s*\}` as regexp to identify these files.
2 parents 662f85e + 454b14a commit 32c1454

File tree

222 files changed

+222
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+222
-222
lines changed

src/test/run-pass/issues/issue-10396.rs renamed to src/test/ui/issues/issue-10396.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
#![allow(dead_code)]
1313
#[derive(Debug)]
1414
enum Foo<'s> {

src/test/run-pass/issues/issue-10456.rs renamed to src/test/ui/issues/issue-10456.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
// pretty-expanded FIXME #23616
1313

1414
pub struct Foo;

src/test/run-pass/issues/issue-10763.rs renamed to src/test/ui/issues/issue-10763.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
#![allow(dead_code)]
1313
// pretty-expanded FIXME #23616
1414

src/test/run-pass/issues/issue-10853.rs renamed to src/test/ui/issues/issue-10853.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
// pretty-expanded FIXME #23616
1313

1414
#![deny(missing_docs)]

src/test/run-pass/issues/issue-10902.rs renamed to src/test/ui/issues/issue-10902.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
#![allow(dead_code)]
1313
// pretty-expanded FIXME #23616
1414

src/test/run-pass/issues/issue-11384.rs renamed to src/test/ui/issues/issue-11384.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
// pretty-expanded FIXME #23616
1313

1414
trait Common { fn dummy(&self) { } }

src/test/run-pass/issues/issue-11592.rs renamed to src/test/ui/issues/issue-11592.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
//! Ensure the private trait Bar isn't complained about.
1313
1414
#![deny(missing_docs)]

src/test/run-pass/issues/issue-11612.rs renamed to src/test/ui/issues/issue-11612.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
#![allow(dead_code)]
1313
// #11612
1414
// We weren't updating the auto adjustments with all the resolved

src/test/run-pass/issues/issue-11869.rs renamed to src/test/ui/issues/issue-11869.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
#![allow(dead_code)]
1313
// pretty-expanded FIXME #23616
1414

src/test/run-pass/issues/issue-1251.rs renamed to src/test/ui/issues/issue-1251.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-pass
11+
// compile-pass
1212
#![allow(unused_attributes)]
1313
#![allow(dead_code)]
1414
// pretty-expanded FIXME #23616

0 commit comments

Comments
 (0)