Skip to content

Commit 1b22bef

Browse files
committed
make run-pass tests with empty main just compile-pass tests
1 parent eb50e75 commit 1b22bef

File tree

175 files changed

+175
-175
lines changed

Some content is hidden

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

175 files changed

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

src/test/run-pass/issues/issue-18738.rs src/test/ui/issues/issue-18738.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(Eq, PartialEq, PartialOrd, Ord)]
1414
enum Test<'a> {

src/test/run-pass/issues/issue-18809.rs src/test/ui/issues/issue-18809.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
trait Tup {
1313
type T0;
1414
type T1;

src/test/run-pass/issues/issue-18906.rs src/test/ui/issues/issue-18906.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-19037.rs src/test/ui/issues/issue-19037.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-19081.rs src/test/ui/issues/issue-19081.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 Hasher {
1313
type State;
1414

0 commit comments

Comments
 (0)