make run-pass tests with empty main just compile-pass tests

This commit is contained in:
Ralf Jung 2018-09-30 14:27:26 +02:00
parent eb50e75729
commit 1b22befd36
175 changed files with 175 additions and 175 deletions

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#[derive(Debug)]
enum Foo<'s> {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
pub struct Foo;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait Common { fn dummy(&self) { } }

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
//! Ensure the private trait Bar isn't complained about.
#![deny(missing_docs)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// #11612
// We weren't updating the auto adjustments with all the resolved

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait Foo {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
use std::slice;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// defining static with struct that contains enum
// with &'static str variant used to cause ICE

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
pub struct Foo<'a, 'b: 'a> { foo: &'a &'b isize }

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait Foo {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
#![allow(unused_imports, dead_code)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait Foo: Sized {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_imports)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
#[deny(dead_code)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
pub type BigRat<T = isize> = T;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
#![feature(fn_traits, unboxed_closures)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
fn main() {}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
struct A<'a> {
a: &'a i32,

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
trait MatrixRow { fn dummy(&self) { }}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
struct Parser<'a, I, O> {
parse: Box<FnMut(I) -> Result<O, String> + 'a>

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
// ignore-cloudabi no std::fs

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_must_use)]
#[allow(dead_code)]
fn check(a: &str) {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code, warnings)]
static mut x: isize = 3;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
struct A;
impl Drop for A {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Regression test for #17746

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Test that we can parse where clauses on various forms of tuple
// structs.

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// These crossed imports should resolve fine, and not block on

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
pub trait Indexable<T>: std::ops::Index<usize, Output = T> {
fn index2(&self, i: usize) -> &T {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
pub trait Promisable: Send + Sync {}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Test that methods in trait impls should override default methods.

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#[derive(Eq, PartialEq, PartialOrd, Ord)]
enum Test<'a> {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
trait Tup {
type T0;
type T1;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
pub trait Hasher {
type State;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// regression test for #19097

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
pub trait Handler {
fn handle(&self, _: &mut String);
}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_imports)]
#![deny(unused_qualifications)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait Trait<Input> {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_variables)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait T {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]
use std::any::TypeId;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
trait Base {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_variables)]
// Test that `<Type as Trait>::Output` and `Self::Output` are accepted as type annotations in let
// bindings

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
#![feature(fn_traits, unboxed_closures)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// Check that associated types are `Sized`
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(stable_features)]
// ignore-cloudabi no processes

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]
struct Foo;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
#![allow(dead_code)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_must_use)]
use std::thread;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// test that autoderef of a type like this does not
// cause compiler to loop. Note that no instances

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(stable_features)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// ignore-cloudabi no std::fs
// Regression test for #20797.

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
pub trait Subscriber {
type Input;
}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
pub trait Trait where Self::Out: std::fmt::Display {
type Out;
}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]
trait Trait<'a> {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Regression test for issue #21245. Check that we are able to infer
// the types in these examples correctly. It used to be that

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// pretty-expanded FIXME #23616
#![no_implicit_prelude]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Test that the requirement (in `Bar`) that `T::Bar : 'static` does
// not wind up propagating to `T`.

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(stable_features)]
#![feature(cfg_target_feature)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Regression test for #21726: an issue arose around the rules for
// subtyping of projection types that resulted in an unconstrained

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
pub trait LineFormatter<'a> {
type Iter: Iterator<Item=&'a str> + 'a;
fn iter(&'a self, line: &'a str) -> Self::Iter;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(type_alias_bounds)]
// pretty-expanded FIXME #23616

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
trait A<T: A<T>> {}
fn main() {}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(type_alias_bounds)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_variables)]
use std::collections::HashMap;
use std::collections::hash_map::Entry::Vacant;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
trait Test {}
macro_rules! test {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#[allow(dead_code)]
static X: &'static str = &*"";
fn main() {}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
trait Inner {
type T;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
use std::marker::PhantomData;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// compiler-flags: -g
pub struct Dst {

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![feature(core_intrinsics)]
#![allow(warnings)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#[derive(PartialEq)]
struct Slice { slice: [u8] }

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
// Regression test for #24085. Errors were occurring in region
// inference due to the requirement that `'a:b'`, which was getting

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
// This resulted in an ICE. Test for future-proofing
// Issue #24227

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
struct Foo;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(unused_attributes)]
// compile-flags:--cfg set1

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#[derive(Debug)]
struct Row<T>([T]);

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![allow(dead_code)]
use std::ops::{Deref, DerefMut};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// compile-pass
#![deny(unused_attributes)]
#[repr(C)]

Some files were not shown because too many files have changed in this diff Show More