Skip to content

Commit a1ee000

Browse files
authored
Rollup merge of rust-lang#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 779bebc + 454b14a commit a1ee000

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 src/test/ui/issues/issue-10396.rs

+1-1
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 src/test/ui/issues/issue-10456.rs

+1-1
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 src/test/ui/issues/issue-10763.rs

+1-1
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 src/test/ui/issues/issue-10853.rs

+1-1
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 src/test/ui/issues/issue-10902.rs

+1-1
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 src/test/ui/issues/issue-11384.rs

+1-1
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 src/test/ui/issues/issue-11592.rs

+1-1
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 src/test/ui/issues/issue-11612.rs

+1-1
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 src/test/ui/issues/issue-11869.rs

+1-1
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 src/test/ui/issues/issue-1251.rs

+1-1
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

src/test/run-pass/issues/issue-12729.rs src/test/ui/issues/issue-12729.rs

+1-1
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-13105.rs src/test/ui/issues/issue-13105.rs

+1-1
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 Foo {

src/test/run-pass/issues/issue-13167.rs src/test/ui/issues/issue-13167.rs

+1-1
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
use std::slice;

src/test/run-pass/issues/issue-13214.rs src/test/ui/issues/issue-13214.rs

+1-1
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
// defining static with struct that contains enum
1414
// with &'static str variant used to cause ICE

src/test/run-pass/issues/issue-13405.rs src/test/ui/issues/issue-13405.rs

+1-1
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
#![allow(unused_variables)]
1414
// pretty-expanded FIXME #23616

src/test/run-pass/issues/issue-13703.rs src/test/ui/issues/issue-13703.rs

+1-1
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<'a, 'b: 'a> { foo: &'a &'b isize }

src/test/run-pass/issues/issue-13775.rs src/test/ui/issues/issue-13775.rs

+1-1
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 Foo {

src/test/run-pass/issues/issue-13837.rs src/test/ui/issues/issue-13837.rs

+1-1
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-14082.rs src/test/ui/issues/issue-14082.rs

+1-1
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
#![allow(unused_imports, dead_code)]

src/test/run-pass/issues/issue-14254.rs src/test/ui/issues/issue-14254.rs

+1-1
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 Foo: Sized {

src/test/run-pass/issues/issue-14330.rs src/test/ui/issues/issue-14330.rs

+1-1
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_imports)]
1313
// pretty-expanded FIXME #23616
1414

src/test/run-pass/issues/issue-14837.rs src/test/ui/issues/issue-14837.rs

+1-1
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(dead_code)]

src/test/run-pass/issues/issue-14901.rs src/test/ui/issues/issue-14901.rs

+1-1
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
pub trait Reader {}
1313

1414
enum Wrapper<'a> {

src/test/run-pass/issues/issue-14933.rs src/test/ui/issues/issue-14933.rs

+1-1
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 type BigRat<T = isize> = T;

src/test/run-pass/issues/issue-14936.rs src/test/ui/issues/issue-14936.rs

+1-1
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_macros)]
1313
#![allow(dead_code)]
1414
#![feature(asm)]

src/test/run-pass/issues/issue-14959.rs src/test/ui/issues/issue-14959.rs

+1-1
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
#![feature(fn_traits, unboxed_closures)]

src/test/run-pass/issues/issue-15108.rs src/test/ui/issues/issue-15108.rs

+1-1
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
fn main() {}

src/test/run-pass/issues/issue-15261.rs src/test/ui/issues/issue-15261.rs

+1-1
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
#![allow(non_upper_case_globals)]
1414

src/test/run-pass/issues/issue-15689-2.rs src/test/ui/issues/issue-15689-2.rs

+1-1
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-15735.rs src/test/ui/issues/issue-15735.rs

+1-1
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
struct A<'a> {
1414
a: &'a i32,

src/test/run-pass/issues/issue-16596.rs src/test/ui/issues/issue-16596.rs

+1-1
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

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

src/test/run-pass/issues/issue-16668.rs src/test/ui/issues/issue-16668.rs

+1-1
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
struct Parser<'a, I, O> {
1414
parse: Box<FnMut(I) -> Result<O, String> + 'a>

src/test/run-pass/issues/issue-17121.rs src/test/ui/issues/issue-17121.rs

+1-1
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
// ignore-cloudabi no std::fs

src/test/run-pass/issues/issue-17336.rs src/test/ui/issues/issue-17336.rs

+1-1
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_must_use)]
1313
#[allow(dead_code)]
1414
fn check(a: &str) {

src/test/run-pass/issues/issue-17450.rs src/test/ui/issues/issue-17450.rs

+1-1
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, warnings)]
1313

1414
static mut x: isize = 3;

src/test/run-pass/issues/issue-17718-const-destructors.rs src/test/ui/issues/issue-17718-const-destructors.rs

+1-1
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
struct A;
1414
impl Drop for A {

src/test/run-pass/issues/issue-17732.rs src/test/ui/issues/issue-17732.rs

+1-1
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-17746.rs src/test/ui/issues/issue-17746.rs

+1-1
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
// Regression test for #17746
1414

src/test/run-pass/issues/issue-17904.rs src/test/ui/issues/issue-17904.rs

+1-1
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
// Test that we can parse where clauses on various forms of tuple
1414
// structs.

src/test/run-pass/issues/issue-18083.rs src/test/ui/issues/issue-18083.rs

+1-1
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
#![allow(unused_imports)]
1414
// These crossed imports should resolve fine, and not block on

src/test/run-pass/issues/issue-18088.rs src/test/ui/issues/issue-18088.rs

+1-1
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

1313
pub trait Indexable<T>: std::ops::Index<usize, Output = T> {
1414
fn index2(&self, i: usize) -> &T {

src/test/run-pass/issues/issue-18188.rs src/test/ui/issues/issue-18188.rs

+1-1
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 trait Promisable: Send + Sync {}

src/test/run-pass/issues/issue-1821.rs src/test/ui/issues/issue-1821.rs

+1-1
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
#![allow(non_camel_case_types)]
1414

src/test/run-pass/issues/issue-18446.rs src/test/ui/issues/issue-18446-2.rs

+1-1
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
// Test that methods in trait impls should override default methods.
1414

0 commit comments

Comments
 (0)