[AUTO-GENERATED] Migrate ui tests from // to //@ directives

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-02-16 20:02:50 +00:00
parent e53d6dd35b
commit ec2cc761bc
No known key found for this signature in database
GPG Key ID: 95DDEBD74A1DC2C0
9925 changed files with 16397 additions and 16397 deletions

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Checks if the "sysv64" calling convention behaves the same as the
// "C" calling convention on platforms where both should be the same
@ -24,10 +24,10 @@
// issue-62350-sysv-neg-reg-counts
// struct-return
// ignore-android
// ignore-arm
// ignore-aarch64
// ignore-windows
//@ ignore-android
//@ ignore-arm
//@ ignore-aarch64
//@ ignore-windows
// note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows

View File

@ -1,11 +1,11 @@
// run-pass
//@ run-pass
// Checks if the correct registers are being used to pass arguments
// when the sysv64 ABI is specified.
// ignore-android
// ignore-arm
// ignore-aarch64
// needs-asm-support
//@ ignore-android
//@ ignore-arm
//@ ignore-aarch64
//@ needs-asm-support
#[cfg(target_arch = "x86_64")]
pub extern "sysv64" fn all_the_registers(

View File

@ -1,6 +1,6 @@
// run-pass
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View File

@ -1,10 +1,10 @@
// build-pass
// revisions: arm
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
//[arm] needs-llvm-components: arm
// revisions: aarch64
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//[aarch64] needs-llvm-components: aarch64
//@ build-pass
//@ revisions: arm
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
//@[arm] needs-llvm-components: arm
//@ revisions: aarch64
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//@[aarch64] needs-llvm-components: aarch64
#![feature(
no_core, lang_items, link_llvm_intrinsics,
abi_unadjusted, repr_simd, arm_target_feature,

View File

@ -1,6 +1,6 @@
// run-pass
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View File

@ -1,6 +1,6 @@
// run-pass
// ignore-wasm32-bare no libc to test with
// ignore-sgx no libc
//@ run-pass
//@ ignore-wasm32-bare no libc to test with
//@ ignore-sgx no libc
#![feature(rustc_private)]

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View File

@ -1,57 +1,57 @@
// check-pass
// revisions: host
// revisions: i686
//[i686] compile-flags: --target i686-unknown-linux-gnu
//[i686] needs-llvm-components: x86
// revisions: x86-64
//[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
//[x86-64] needs-llvm-components: x86
// revisions: x86-64-win
//[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
//[x86-64-win] needs-llvm-components: x86
// revisions: arm
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
//[arm] needs-llvm-components: arm
// revisions: aarch64
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//[aarch64] needs-llvm-components: aarch64
// revisions: s390x
//[s390x] compile-flags: --target s390x-unknown-linux-gnu
//[s390x] needs-llvm-components: systemz
// revisions: mips
//[mips] compile-flags: --target mips-unknown-linux-gnu
//[mips] needs-llvm-components: mips
// revisions: mips64
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
//[mips64] needs-llvm-components: mips
// revisions: sparc
//[sparc] compile-flags: --target sparc-unknown-linux-gnu
//[sparc] needs-llvm-components: sparc
// revisions: sparc64
//[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
//[sparc64] needs-llvm-components: sparc
// revisions: powerpc64
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
//[powerpc64] needs-llvm-components: powerpc
// revisions: riscv
//[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
//[riscv] needs-llvm-components: riscv
// revisions: loongarch64
//[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
//[loongarch64] needs-llvm-components: loongarch
//[loongarch64] min-llvm-version: 17
// revisions: wasm
//[wasm] compile-flags: --target wasm32-unknown-unknown
//[wasm] needs-llvm-components: webassembly
// revisions: wasi
//[wasi] compile-flags: --target wasm32-wasi
//[wasi] needs-llvm-components: webassembly
// revisions: bpf
//[bpf] compile-flags: --target bpfeb-unknown-none
//[bpf] needs-llvm-components: bpf
// revisions: m68k
//[m68k] compile-flags: --target m68k-unknown-linux-gnu
//[m68k] needs-llvm-components: m68k
//@ check-pass
//@ revisions: host
//@ revisions: i686
//@[i686] compile-flags: --target i686-unknown-linux-gnu
//@[i686] needs-llvm-components: x86
//@ revisions: x86-64
//@[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
//@[x86-64] needs-llvm-components: x86
//@ revisions: x86-64-win
//@[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
//@[x86-64-win] needs-llvm-components: x86
//@ revisions: arm
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
//@[arm] needs-llvm-components: arm
//@ revisions: aarch64
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//@[aarch64] needs-llvm-components: aarch64
//@ revisions: s390x
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu
//@[s390x] needs-llvm-components: systemz
//@ revisions: mips
//@[mips] compile-flags: --target mips-unknown-linux-gnu
//@[mips] needs-llvm-components: mips
//@ revisions: mips64
//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
//@[mips64] needs-llvm-components: mips
//@ revisions: sparc
//@[sparc] compile-flags: --target sparc-unknown-linux-gnu
//@[sparc] needs-llvm-components: sparc
//@ revisions: sparc64
//@[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
//@[sparc64] needs-llvm-components: sparc
//@ revisions: powerpc64
//@[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
//@[powerpc64] needs-llvm-components: powerpc
//@ revisions: riscv
//@[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
//@[riscv] needs-llvm-components: riscv
//@ revisions: loongarch64
//@[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
//@[loongarch64] needs-llvm-components: loongarch
//@[loongarch64] min-llvm-version: 17
//@ revisions: wasm
//@[wasm] compile-flags: --target wasm32-unknown-unknown
//@[wasm] needs-llvm-components: webassembly
//@ revisions: wasi
//@[wasi] compile-flags: --target wasm32-wasi
//@[wasi] needs-llvm-components: webassembly
//@ revisions: bpf
//@[bpf] compile-flags: --target bpfeb-unknown-none
//@[bpf] needs-llvm-components: bpf
//@ revisions: m68k
//@[m68k] compile-flags: --target m68k-unknown-linux-gnu
//@[m68k] needs-llvm-components: m68k
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
// see https://github.com/rust-lang/rust/issues/117480
/* revisions: nvptx64

View File

@ -1,7 +1,7 @@
// run-pass
// aux-build:anon-extern-mod-cross-crate-1.rs
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
extern crate anonexternmod;

View File

@ -1,8 +1,8 @@
// run-pass
// aux-build:anon-extern-mod-cross-crate-1.rs
// aux-build:anon-extern-mod-cross-crate-1.rs
// pretty-expanded FIXME #23616
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
extern crate anonexternmod;

View File

@ -1,11 +1,11 @@
// normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
// normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
// normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
// normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
//@ normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
//@ normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
//@ normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
//@ normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
// This pattern is prepared for when we account for alignment in the niche.
// normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
//@ normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
// Some attributes are only computed for release builds:
// compile-flags: -O
//@ compile-flags: -O
#![feature(rustc_attrs)]
#![crate_type = "lib"]

View File

@ -1,4 +1,4 @@
// check-pass
//@ check-pass
#[repr(Rust)]
struct A;

View File

@ -1,6 +1,6 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
// ignore-emscripten blows the JS stack
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
//@ ignore-emscripten blows the JS stack
#![feature(rustc_private)]

View File

@ -1,6 +1,6 @@
// run-pass
//@ run-pass
#![allow(unused_must_use)]
// ignore-emscripten no threads support
//@ ignore-emscripten no threads support
#![feature(rustc_private)]
extern crate libc;

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Test direct calls to extern fns.

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View File

@ -1,10 +1,10 @@
// run-pass
//@ run-pass
#![allow(unused_must_use)]
// This time we're testing repeatedly going up and down both stacks to
// make sure the stack pointers are maintained properly in both
// directions
// ignore-emscripten no threads support
//@ ignore-emscripten no threads support
#![feature(rustc_private)]
extern crate libc;

View File

@ -1,6 +1,6 @@
// run-pass
// aux-build:extern-crosscrate-source.rs
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:extern-crosscrate-source.rs
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc for ffi testing
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
// Test a function that takes/returns a u8.

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View File

@ -1,11 +1,11 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.
// Test a foreign function that accepts empty struct.
// pretty-expanded FIXME #23616
// ignore-msvc
// ignore-emscripten emcc asserts on an empty struct as an argument
//@ pretty-expanded FIXME #23616
//@ ignore-msvc
//@ ignore-emscripten emcc asserts on an empty struct as an argument
#[repr(C)]
struct TwoU8s {

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
// Test a function that takes/returns a u32.

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc for ffi testing
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
// Test a call to a function that takes/returns a u64.

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU16s {
one: u16,

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU32s {
one: u32,

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU64s {
one: u64,

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU8s {
one: u8,

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-emscripten no threads support
//@ run-pass
//@ ignore-emscripten no threads support
#![feature(rustc_private)]

View File

@ -1,6 +1,6 @@
// run-pass
// aux-build:foreign_lib.rs
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:foreign_lib.rs
//@ ignore-wasm32-bare no libc to test ffi with
// Check that we can still call duplicated extern (imported) functions
// which were declared in another crate. See issues #32740 and #32783.

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes, improper_ctypes_definitions)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Copy, Clone)]
pub struct S {

View File

@ -1,8 +1,8 @@
// run-pass
//@ run-pass
// ABI is cdecl by default
// ignore-wasm32-bare no libc to test ffi with
// pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
//@ pretty-expanded FIXME #23616
#![feature(rustc_private)]

View File

@ -1,12 +1,12 @@
// run-pass
// aux-build:foreign_lib.rs
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ aux-build:foreign_lib.rs
//@ ignore-wasm32-bare no libc to test ffi with
// The purpose of this test is to check that we can
// successfully (and safely) invoke external, cdecl
// functions from outside the crate.
// pretty-expanded FIXME #23616
//@ pretty-expanded FIXME #23616
extern crate foreign_lib;

View File

@ -4,9 +4,9 @@
// This is basically the same test as tests/ui/simd/target-feature-mixup.rs but for floats and
// without #[repr(simd)]
// run-pass
// ignore-emscripten
// ignore-sgx no processes
//@ run-pass
//@ ignore-emscripten
//@ ignore-sgx no processes
#![feature(avx512_target_feature)]

View File

@ -1,8 +1,8 @@
// run-pass
//@ run-pass
#![allow(dead_code)]
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Copy, Clone)]
pub struct Quad {

View File

@ -1,8 +1,8 @@
// run-pass
//@ run-pass
#![allow(dead_code)]
#![allow(improper_ctypes)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Copy, Clone)]
pub struct QuadFloats {

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm
//@ run-pass
//@ ignore-wasm
#![allow(dead_code)]
#![allow(improper_ctypes)]

View File

@ -1,9 +1,9 @@
// run-pass
// dont-check-compiler-stderr (rust-lang/rust#54222)
//@ run-pass
//@ dont-check-compiler-stderr (rust-lang/rust#54222)
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
// compile-flags: -lrust_test_helpers
//@ compile-flags: -lrust_test_helpers
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// #11303, #11040:
// This would previously crash on i686 Linux due to abi differences
// between returning an Option<T> and T, where T is a non nullable

View File

@ -1,12 +1,12 @@
// run-pass
//@ run-pass
#![allow(improper_ctypes)]
// MSVC doesn't support 128 bit integers, and other Windows
// C compilers have very inconsistent views on how the ABI
// should look like.
// ignore-windows
// ignore-32bit
//@ ignore-windows
//@ ignore-32bit
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View File

@ -1,6 +1,6 @@
// run-pass
// compile-flags: -C relocation-model=pic
// needs-relocation-model-pic
//@ run-pass
//@ compile-flags: -C relocation-model=pic
//@ needs-relocation-model-pic
#![feature(cfg_relocation_model)]

View File

@ -1,10 +1,10 @@
// ignore-tidy-linelength
// revisions: riscv32 riscv64
//@ revisions: riscv32 riscv64
//
// [riscv32] needs-llvm-components: riscv
// [riscv32] compile-flags: --target=riscv32i-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
// [riscv64] needs-llvm-components: riscv
// [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
//@ [riscv32] needs-llvm-components: riscv
//@ [riscv32] compile-flags: --target=riscv32i-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
//@ [riscv64] needs-llvm-components: riscv
//@ [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
#![no_core]
#![feature(
no_core,

View File

@ -1,6 +1,6 @@
// revisions: normal opt
// check-pass
//[opt] compile-flags: -Zmir-opt-level=3
//@ revisions: normal opt
//@ check-pass
//@[opt] compile-flags: -Zmir-opt-level=3
#![feature(unboxed_closures, tuple_trait)]

View File

@ -1,9 +1,9 @@
// run-pass
//@ run-pass
#![allow(unused_imports)]
// ignore-emscripten can't run commands
// ignore-sgx no processes
// ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
//@ ignore-emscripten can't run commands
//@ ignore-sgx no processes
//@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
#![feature(rustc_private)]
extern crate libc;

View File

@ -1,14 +1,14 @@
// revisions: aarch64 x32 x64
// run-pass
//[aarch64] only-aarch64
//[aarch64] min-llvm-version: 18
//[x32] only-x86
//[x64] only-x86_64
// ignore-sgx no processes
// ignore-musl FIXME #31506
// ignore-fuchsia no exception handler registered for segfault
// compile-flags: -C lto
// no-prefer-dynamic
// ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
//@ revisions: aarch64 x32 x64
//@ run-pass
//@[aarch64] only-aarch64
//@[aarch64] min-llvm-version: 18
//@[x32] only-x86
//@[x64] only-x86_64
//@ ignore-sgx no processes
//@ ignore-musl FIXME #31506
//@ ignore-fuchsia no exception handler registered for segfault
//@ compile-flags: -C lto
//@ no-prefer-dynamic
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
include!("stack-probes.rs");

View File

@ -1,13 +1,13 @@
// revisions: aarch64 x32 x64
// run-pass
//[aarch64] only-aarch64
//[aarch64] min-llvm-version: 18
//[x32] only-x86
//[x64] only-x86_64
// ignore-emscripten no processes
// ignore-sgx no processes
// ignore-fuchsia no exception handler registered for segfault
// ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
//@ revisions: aarch64 x32 x64
//@ run-pass
//@[aarch64] only-aarch64
//@[aarch64] min-llvm-version: 18
//@[x32] only-x86
//@[x64] only-x86_64
//@ ignore-emscripten no processes
//@ ignore-sgx no processes
//@ ignore-fuchsia no exception handler registered for segfault
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
use std::env;
use std::mem::MaybeUninit;

View File

@ -1,9 +1,9 @@
// run-pass
// only-x86_64-unknown-linux-gnu
// revisions: ssp no-ssp
// [ssp] compile-flags: -Z stack-protector=all
// compile-flags: -C opt-level=2
// compile-flags: -g
//@ run-pass
//@ only-x86_64-unknown-linux-gnu
//@ revisions: ssp no-ssp
//@ [ssp] compile-flags: -Z stack-protector=all
//@ compile-flags: -C opt-level=2
//@ compile-flags: -g
use std::env;
use std::process::{Command, ExitStatus};

View File

@ -1,9 +1,9 @@
// run-pass
//@ run-pass
// Constants (static variables) can be used to match in patterns, but mutable
// statics cannot. This ensures that there's some form of error if this is
// attempted.
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View File

@ -1,6 +1,6 @@
// run-pass
//@ run-pass
#![allow(dead_code)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
#[repr(C)]
#[derive(Copy, Clone)]

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
#![allow(non_snake_case)]
// ignore-wasm32-bare no libc to test ffi with
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Clone, Copy)]
#[repr(C)]

View File

@ -1,4 +1,4 @@
// check-pass
//@ check-pass
#![allow(improper_ctypes_definitions)]
#![feature(unsized_tuple_coercion)]
#![feature(unsized_fn_params)]

View File

@ -1,17 +1,17 @@
// revisions: x64 i686 aarch64 arm riscv32 riscv64
//@ revisions: x64 i686 aarch64 arm riscv32 riscv64
//
// [x64] needs-llvm-components: x86
// [x64] compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
// [i686] needs-llvm-components: x86
// [i686] compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
// [aarch64] needs-llvm-components: aarch64
// [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
// [arm] needs-llvm-components: arm
// [arm] compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
// [riscv32] needs-llvm-components: riscv
// [riscv32] compile-flags: --target=riscv32i-unknown-none-elf --crate-type=rlib
// [riscv64] needs-llvm-components: riscv
// [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf --crate-type=rlib
//@ [x64] needs-llvm-components: x86
//@ [x64] compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
//@ [i686] needs-llvm-components: x86
//@ [i686] compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
//@ [aarch64] needs-llvm-components: aarch64
//@ [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
//@ [arm] needs-llvm-components: arm
//@ [arm] compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
//@ [riscv32] needs-llvm-components: riscv
//@ [riscv32] compile-flags: --target=riscv32i-unknown-none-elf --crate-type=rlib
//@ [riscv64] needs-llvm-components: riscv
//@ [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf --crate-type=rlib
#![no_core]
#![feature(
no_core,

View File

@ -1,5 +1,5 @@
// run-pass
// ignore-wasm32-bare no libc to test ffi with
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(c_variadic)]
use std::ffi::VaList;

View File

@ -1,5 +1,5 @@
// run-pass
// only-windows
//@ run-pass
//@ only-windows
// GetLastError doesn't seem to work with stack switching
#[cfg(windows)]

View File

@ -1,5 +1,5 @@
// run-pass
// only-windows
//@ run-pass
//@ only-windows
#![allow(non_camel_case_types)]
pub type HANDLE = usize;

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]
@ -7,7 +7,7 @@
// Regression test for issue #374
// pretty-expanded FIXME #23616
//@ pretty-expanded FIXME #23616
enum sty { ty_nil, }

View File

@ -1,4 +1,4 @@
// compile-flags:-C panic=abort
//@ compile-flags:-C panic=abort
#![feature(alloc_error_handler)]
#![no_std]

View File

@ -1,4 +1,4 @@
// compile-flags:-C panic=abort
//@ compile-flags:-C panic=abort
#![feature(alloc_error_handler)]
#![no_std]

View File

@ -1,4 +1,4 @@
// compile-flags:-C panic=abort
//@ compile-flags:-C panic=abort
#![feature(alloc_error_handler)]
#![no_std]

View File

@ -1,6 +1,6 @@
// run-pass
// ignore-emscripten no processes
// ignore-sgx no processes
//@ run-pass
//@ ignore-emscripten no processes
//@ ignore-sgx no processes
use std::alloc::{Layout, handle_alloc_error};
use std::env;

View File

@ -1,4 +1,4 @@
// no-prefer-dynamic
//@ no-prefer-dynamic
#![crate_type = "rlib"]

View File

@ -1,4 +1,4 @@
// no-prefer-dynamic
//@ no-prefer-dynamic
#![feature(allocator_api)]
#![crate_type = "rlib"]

View File

@ -1,4 +1,4 @@
// no-prefer-dynamic
//@ no-prefer-dynamic
#![crate_type = "rlib"]
#![no_std]

View File

@ -1,4 +1,4 @@
// no-prefer-dynamic
//@ no-prefer-dynamic
#![crate_type = "rlib"]

View File

@ -1,4 +1,4 @@
// no-prefer-dynamic
//@ no-prefer-dynamic
#![crate_type = "rlib"]

View File

@ -1,7 +1,7 @@
// run-pass
// no-prefer-dynamic
// aux-build:custom.rs
// aux-build:helper.rs
//@ run-pass
//@ no-prefer-dynamic
//@ aux-build:custom.rs
//@ aux-build:helper.rs
extern crate custom;
extern crate helper;

View File

@ -1,7 +1,7 @@
// run-pass
// no-prefer-dynamic
// aux-build:custom.rs
// aux-build:helper.rs
//@ run-pass
//@ no-prefer-dynamic
//@ aux-build:custom.rs
//@ aux-build:helper.rs
extern crate custom;
extern crate helper;

View File

@ -1,7 +1,7 @@
// run-pass
//@ run-pass
// aux-build:helper.rs
// no-prefer-dynamic
//@ aux-build:helper.rs
//@ no-prefer-dynamic
#![feature(allocator_api)]
#![feature(slice_ptr_get)]

View File

@ -1,7 +1,7 @@
// run-pass
// no-prefer-dynamic
// aux-build:custom.rs
// aux-build:helper.rs
//@ run-pass
//@ no-prefer-dynamic
//@ aux-build:custom.rs
//@ aux-build:helper.rs
#![allow(nonstandard_style)]

View File

@ -1,11 +1,11 @@
// run-pass
// ignore-android no libc
// ignore-emscripten no libc
// ignore-sgx no libc
// ignore-wasm32 no libc
// only-linux
// compile-flags:-C panic=abort
// aux-build:helper.rs
//@ run-pass
//@ ignore-android no libc
//@ ignore-emscripten no libc
//@ ignore-sgx no libc
//@ ignore-wasm32 no libc
//@ only-linux
//@ compile-flags:-C panic=abort
//@ aux-build:helper.rs
#![feature(rustc_private, lang_items)]
#![feature(alloc_error_handler)]

View File

@ -1,11 +1,11 @@
// run-pass
// ignore-android no libc
// ignore-emscripten no libc
// ignore-sgx no libc
// ignore-wasm32 no libc
// only-linux
// compile-flags:-C panic=abort
// aux-build:helper.rs
//@ run-pass
//@ ignore-android no libc
//@ ignore-emscripten no libc
//@ ignore-sgx no libc
//@ ignore-wasm32 no libc
//@ only-linux
//@ compile-flags:-C panic=abort
//@ aux-build:helper.rs
#![feature(rustc_private, lang_items)]
#![no_std]

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Check that `Allocator` is object safe, this allows for polymorphic allocators

View File

@ -1,6 +1,6 @@
// aux-build:system-allocator.rs
// no-prefer-dynamic
// error-pattern: the `#[global_allocator]` in
//@ aux-build:system-allocator.rs
//@ no-prefer-dynamic
//@ error-pattern: the `#[global_allocator]` in
extern crate system_allocator;

View File

@ -1,7 +1,7 @@
// aux-build:system-allocator.rs
// aux-build:system-allocator2.rs
// no-prefer-dynamic
// error-pattern: the `#[global_allocator]` in
//@ aux-build:system-allocator.rs
//@ aux-build:system-allocator2.rs
//@ no-prefer-dynamic
//@ error-pattern: the `#[global_allocator]` in
extern crate system_allocator;

View File

@ -1,8 +1,8 @@
// run-pass
//@ run-pass
// aux-build:custom.rs
// aux-build:helper.rs
// no-prefer-dynamic
//@ aux-build:custom.rs
//@ aux-build:helper.rs
//@ no-prefer-dynamic
#![feature(allocator_api)]
#![feature(slice_ptr_get)]

View File

@ -1,9 +1,9 @@
// run-pass
//@ run-pass
// aux-build:custom.rs
// aux-build:custom-as-global.rs
// aux-build:helper.rs
// no-prefer-dynamic
//@ aux-build:custom.rs
//@ aux-build:custom-as-global.rs
//@ aux-build:helper.rs
//@ no-prefer-dynamic
#![feature(allocator_api)]

View File

@ -1,5 +1,5 @@
// force-host
// no-prefer-dynamic
//@ force-host
//@ no-prefer-dynamic
#![crate_type = "proc-macro"]
#![feature(proc_macro_diagnostic, proc_macro_span, proc_macro_def_site)]

View File

@ -1,5 +1,5 @@
// compile-flags: --error-format human-annotate-rs -Z unstable-options
// error-pattern:cannot find type `Iter` in this scope
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
//@ error-pattern:cannot find type `Iter` in this scope
pub fn main() {
let x: Iter;

View File

@ -1,5 +1,5 @@
// aux-build:other_file.rs
// compile-flags: --error-format human-annotate-rs -Z unstable-options
//@ aux-build:other_file.rs
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
extern crate other_file;

View File

@ -1,6 +1,6 @@
// aux-build:multispan.rs
// error-pattern:hello to you, too!
// compile-flags: --error-format human-annotate-rs -Z unstable-options
//@ aux-build:multispan.rs
//@ error-pattern:hello to you, too!
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
#![feature(proc_macro_hygiene)]

View File

@ -1,6 +1,6 @@
// Tests that anonymous parameters are a hard error in edition 2018.
// edition:2018
//@ edition:2018
trait T {
fn foo(i32); //~ expected one of `:`, `@`, or `|`, found `)`

View File

@ -1,9 +1,9 @@
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)
// check-pass
// edition:2015
// run-rustfix
//@ check-pass
//@ edition:2015
//@ run-rustfix
#[allow(dead_code)]
trait T {

View File

@ -1,9 +1,9 @@
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)
// check-pass
// edition:2015
// run-rustfix
//@ check-pass
//@ edition:2015
//@ run-rustfix
#[allow(dead_code)]
trait T {

View File

@ -1,5 +1,5 @@
// edition:2018
// aux-build:anon-params-edition-hygiene.rs
//@ edition:2018
//@ aux-build:anon-params-edition-hygiene.rs
// This warning is still surfaced
#![allow(anonymous_parameters)]

View File

@ -1,4 +1,4 @@
// edition:2015
//@ edition:2015
#[macro_export]
macro_rules! generate_trait_2015_ident {

View File

@ -1,4 +1,4 @@
// run-rustfix
//@ run-rustfix
fn f() {}
fn i(_: u32) {}

View File

@ -1,4 +1,4 @@
// run-rustfix
//@ run-rustfix
fn f() {}
fn i(_: u32) {}

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
#![allow(dead_code)]
#![allow(stable_features)]

View File

@ -1,6 +1,6 @@
// run-fail
// error-pattern:index out of bounds
// ignore-emscripten no processes
//@ run-fail
//@ error-pattern:index out of bounds
//@ ignore-emscripten no processes
use std::mem::size_of;

View File

@ -1,11 +1,11 @@
// run-pass
// needs-unwind
//@ run-pass
//@ needs-unwind
#![allow(overflowing_literals)]
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
// destructor.
// ignore-emscripten no threads support
//@ ignore-emscripten no threads support
use std::thread;
use std::sync::atomic::{AtomicUsize, Ordering};

View File

@ -1,11 +1,11 @@
// run-pass
// needs-unwind
//@ run-pass
//@ needs-unwind
#![allow(overflowing_literals)]
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
// destructor.
// ignore-emscripten no threads support
//@ ignore-emscripten no threads support
use std::thread;
use std::sync::atomic::{AtomicUsize, Ordering};

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
//

View File

@ -1,8 +1,8 @@
// run-pass
//@ run-pass
// issues #10618 and #16382
// pretty-expanded FIXME #23616
//@ pretty-expanded FIXME #23616
const SIZE: isize = 25;

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Check that the various ways of getting to a reference to a vec (both sized
// and unsized) work properly.

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Ensure that we can copy out of a fixed-size array.
//

View File

@ -1,4 +1,4 @@
// run-pass
//@ run-pass
// Ensure that we can do a destructuring bind of a fixed-size array,
// even when the element type has a destructor.

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