Rollup merge of #62317 - JohnTitor:move-tests-to-build-pass, r=Centril

Migrate `compile-pass` annotations to `build-pass`

This is a part of #62277.

As a first step, the `compile-pass` tests are migrated to `build-pass`.

r? @cramertj
cc @Centril
This commit is contained in:
Mazdak Farrokhzad 2019-07-04 01:38:58 +02:00 committed by GitHub
commit 919349701a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
711 changed files with 716 additions and 716 deletions

View file

@ -1,7 +1,7 @@
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2015
// run-rustfix

View file

@ -1,7 +1,7 @@
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2015
// run-rustfix

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
trait ConstDefault {
const DEFAULT: Self;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(associated_type_bounds)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(associated_type_bounds)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(associated_type_bounds)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
// compile-flags: --crate-type lib

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
// compile-flags: --crate-type lib

View file

@ -3,7 +3,7 @@
// while those two fields were at the same offset (which is impossible).
// That is, memory ordering of `(X, ())`, but offsets of `((), X)`.
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(arbitrary_self_types, async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, await_macro)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await)]

View file

@ -1,6 +1,6 @@
// Test that existential types are allowed to contain late-bound regions.
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await, existential_type)]

View file

@ -1,5 +1,5 @@
// aux-build:issue-60674.rs
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
#![feature(async_await)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
//
// Tests that we properly handle StorageDead/StorageLives for temporaries

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// pretty-expanded FIXME #23616
#![feature(rustc_attrs)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// pretty-expanded FIXME #23616
#![feature(rustc_attrs)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// pretty-expanded FIXME #23616
#![feature(rustc_attrs)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// pp-exact - Make sure we actually print the attributes
#![feature(rustc_attrs)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(rustc_attrs)]

View file

@ -2,7 +2,7 @@
// for completeness since .rs files linked from .rc files support this
// notation to specify their module's attributes
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(rustc_attrs)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// pp-exact - Make sure we print all the attributes
// pretty-expanded FIXME #23616

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// pp-exact - Make sure we actually print the attributes
// pretty-expanded FIXME #23616

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// Bastion of the Turbofish
// ------------------------

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// rust-lang/rust#55552: The strategy pnkfelix landed in PR #55274
// (for ensuring that NLL respects user-provided lifetime annotations)

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(exclusive_range_pattern)]
#![warn(unreachable_patterns)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![allow(warnings)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn with_closure<F, A>(_: F)
where F: FnOnce(A, &u32)

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn with_closure<F, A>(_: F)
where F: FnOnce(A, &u32)

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn test<F: Fn(&u64, &u64)>(f: F) {}

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![allow(const_err)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(never_type)]
#![allow(unreachable_code)]

View file

@ -5,7 +5,7 @@
// universe transition (#56105) may eventually become an error.
// revisions: old re
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![cfg_attr(re, feature(re_rebalance_coherence))]

View file

@ -2,7 +2,7 @@
// `MyType: !MyTrait` along with other "fundamental" wrappers.
// aux-build:coherence_copy_like_lib.rs
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// skip-codgen
// revisions: old re

View file

@ -1,7 +1,7 @@
// Test that cfg_attr doesn't emit any attributes when the
// configuration variable is false. This mirrors `cfg-attr-multi-true.rs`
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![warn(unused_must_use)]

View file

@ -2,7 +2,7 @@
// This is done by emitting two attributes that cause new warnings, and then
// triggering those warnings.
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![warn(unused_must_use)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
enum Foo {
Bar = { let x = 1; 3 }

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub trait Foo {
fn foo(self) -> u32;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
const MIN: i8 = -5;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
enum Foo {
A = 5,

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(const_fn, rustc_attrs)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
use std::time::Duration;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(extern_types)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub trait Nullable {
const NULL: Self;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#[derive(Copy, Clone, PartialEq, Eq)]
#[repr(packed)]
pub struct Num(u64);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
struct S(pub &'static u32, pub u32);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub struct Stats;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// https://github.com/rust-lang/rust/issues/51300
#[derive(PartialEq, Eq, Clone, Copy)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
macro_rules! m {
() => {{

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub const STATIC_TRAIT: &dyn Test = &();

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// Test that we can handle newtypes wrapping extern types

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// if `X` were used instead of `x`, `X - 10` would result in a lint.
// This file should never produce a lint, no matter how the const

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub fn main() {
let y: &'static mut [u8; 0] = &mut [];

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![warn(const_err)]
#![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![warn(const_err)]
pub const Z: u32 = 0 - 1;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
const PARSE_BOOL: Option<&'static str> = None;
static FOO: (Option<&str>, u32) = (PARSE_BOOL, 42);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// Some constants that *are* valid
#![feature(const_transmute)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
static ASSERT: () = [()][!(std::mem::size_of::<u32>() == 4) as usize];

View file

@ -1,5 +1,5 @@
// Encountered while testing #44614.
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub fn main() {
// Constant of generic type (int)

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
const fn i((a, b): (u32, u32)) -> u32 {
a + b

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
use std::num::NonZeroU8;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#[derive(PartialEq, Eq)]
enum Cake {

View file

@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/55454
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
struct This<T>(T);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// aux-build:const_fn_lib.rs
extern crate const_fn_lib;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
struct S(i32);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
pub struct AA {
pub data: [u8; 10],

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(const_fn)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {}

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
struct A;
impl Drop for A {

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![feature(const_raw_ptr_deref)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// note this was only reproducible with lib crates
// compile-flags: --crate-type=lib

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
assert_eq!(&mut [0; 1][..], &mut []);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
use std::cell::UnsafeCell;
use std::sync::atomic::AtomicU32;

View file

@ -1,4 +1,4 @@
//compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// aux-build:promotable_const_fn_lib.rs
extern crate promotable_const_fn_lib;

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
let x: &'static u8 = &u8::max_value();

View file

@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/55454
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#[derive(PartialEq)]
struct This<T>(T);

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
let _ = &[("", ""); 3];

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
static mut STDERR_BUFFER_SPACE: [u8; 42] = [0u8; 42];

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
struct Wrap<T>(T);
unsafe impl<T> Send for Wrap<T> {}

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![deny(unused)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
union Uninit {
_never_use: *const u8,

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![deny(dead_code)]

View file

@ -1,5 +1,5 @@
// run-rustfix
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#[allow(deprecated, unused_imports)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};

View file

@ -1,5 +1,5 @@
// run-rustfix
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#[allow(deprecated, unused_imports)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![deny(deprecated)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![forbid(deprecated)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// compile-flags: -Wunused
// ensure there are no special warnings about uninhabited types

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// Under the 2015 edition with the keyword_idents lint, `dyn` is
// not entirely acceptable as an identifier.

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// Under the 2015 edition with the keyword_idents lint, `dyn` is
// not entirely acceptable as an identifier.

View file

@ -1,7 +1,7 @@
// Under the 2015 edition without the keyword_idents lint, `dyn` is
// entirely acceptable as an identifier.
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![allow(non_camel_case_types)]

View file

@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// rust-lang/rust#56327: Some occurrences of `dyn` within a macro are
// not instances of identifiers, and thus should *not* be caught by the

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