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:
commit
919349701a
711 changed files with 716 additions and 716 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
trait ConstDefault {
|
||||
const DEFAULT: Self;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(associated_type_bounds)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(associated_type_bounds)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(associated_type_bounds)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
// compile-flags: --crate-type lib
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
// compile-flags: --crate-type lib
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(arbitrary_self_types, async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await, await_macro)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
|
||||
#![feature(async_await)]
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// aux-build:issue-60674.rs
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// edition:2018
|
||||
#![feature(async_await)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
// Bastion of the Turbofish
|
||||
// ------------------------
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(exclusive_range_pattern)]
|
||||
#![warn(unreachable_patterns)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn test<F: Fn(&u64, &u64)>(f: F) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![allow(const_err)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(never_type)]
|
||||
#![allow(unreachable_code)]
|
||||
|
|
|
|||
|
|
@ -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))]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
enum Foo {
|
||||
Bar = { let x = 1; 3 }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
pub trait Foo {
|
||||
fn foo(self) -> u32;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
const MIN: i8 = -5;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
enum Foo {
|
||||
A = 5,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(const_fn, rustc_attrs)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(extern_types)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
pub trait Nullable {
|
||||
const NULL: Self;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
struct S(pub &'static u32, pub u32);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
pub struct Stats;
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
macro_rules! m {
|
||||
() => {{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
pub const STATIC_TRAIT: &dyn Test = &();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
// Test that we can handle newtypes wrapping extern types
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
pub fn main() {
|
||||
let y: &'static mut [u8; 0] = &mut [];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
#![warn(const_err)]
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
#![warn(const_err)]
|
||||
|
||||
pub const Z: u32 = 0 - 1;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
// Some constants that *are* valid
|
||||
#![feature(const_transmute)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
static ASSERT: () = [()][!(std::mem::size_of::<u32>() == 4) as usize];
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
const fn i((a, b): (u32, u32)) -> u32 {
|
||||
a + b
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
use std::num::NonZeroU8;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#[derive(PartialEq, Eq)]
|
||||
enum Cake {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
struct S(i32);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
pub struct AA {
|
||||
pub data: [u8; 10],
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(const_fn)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
#![allow(dead_code)]
|
||||
struct A;
|
||||
impl Drop for A {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(const_raw_ptr_deref)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
assert_eq!(&mut [0; 1][..], &mut []);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
use std::cell::UnsafeCell;
|
||||
use std::sync::atomic::AtomicU32;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
//compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
let x: &'static u8 = &u8::max_value();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
let _ = &[("", ""); 3];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
static mut STDERR_BUFFER_SPACE: [u8; 42] = [0u8; 42];
|
||||
|
||||
|
|
|
|||
|
|
@ -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> {}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![deny(unused)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
union Uninit {
|
||||
_never_use: *const u8,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![deny(dead_code)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![deny(deprecated)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![forbid(deprecated)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue