[AUTO-GENERATED] Migrate ui tests from //
to //@
directives
This commit is contained in:
parent
e53d6dd35b
commit
ec2cc761bc
9925 changed files with 16397 additions and 16397 deletions
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// Checks if the "sysv64" calling convention behaves the same as the
|
// Checks if the "sysv64" calling convention behaves the same as the
|
||||||
// "C" calling convention on platforms where both should be the same
|
// "C" calling convention on platforms where both should be the same
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@
|
||||||
// issue-62350-sysv-neg-reg-counts
|
// issue-62350-sysv-neg-reg-counts
|
||||||
// struct-return
|
// struct-return
|
||||||
|
|
||||||
// ignore-android
|
//@ ignore-android
|
||||||
// ignore-arm
|
//@ ignore-arm
|
||||||
// ignore-aarch64
|
//@ ignore-aarch64
|
||||||
// ignore-windows
|
//@ ignore-windows
|
||||||
|
|
||||||
// note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows
|
// note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// Checks if the correct registers are being used to pass arguments
|
// Checks if the correct registers are being used to pass arguments
|
||||||
// when the sysv64 ABI is specified.
|
// when the sysv64 ABI is specified.
|
||||||
|
|
||||||
// ignore-android
|
//@ ignore-android
|
||||||
// ignore-arm
|
//@ ignore-arm
|
||||||
// ignore-aarch64
|
//@ ignore-aarch64
|
||||||
// needs-asm-support
|
//@ needs-asm-support
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
pub extern "sysv64" fn all_the_registers(
|
pub extern "sysv64" fn all_the_registers(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// build-pass
|
//@ build-pass
|
||||||
// revisions: arm
|
//@ revisions: arm
|
||||||
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
|
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
|
||||||
//[arm] needs-llvm-components: arm
|
//@[arm] needs-llvm-components: arm
|
||||||
// revisions: aarch64
|
//@ revisions: aarch64
|
||||||
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
|
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
|
||||||
//[aarch64] needs-llvm-components: aarch64
|
//@[aarch64] needs-llvm-components: aarch64
|
||||||
#![feature(
|
#![feature(
|
||||||
no_core, lang_items, link_llvm_intrinsics,
|
no_core, lang_items, link_llvm_intrinsics,
|
||||||
abi_unadjusted, repr_simd, arm_target_feature,
|
abi_unadjusted, repr_simd, arm_target_feature,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc to test with
|
//@ ignore-wasm32-bare no libc to test with
|
||||||
// ignore-sgx no libc
|
//@ ignore-sgx no libc
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#[link(name = "rust_test_helpers", kind = "static")]
|
#[link(name = "rust_test_helpers", kind = "static")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,57 +1,57 @@
|
||||||
// check-pass
|
//@ check-pass
|
||||||
// revisions: host
|
//@ revisions: host
|
||||||
// revisions: i686
|
//@ revisions: i686
|
||||||
//[i686] compile-flags: --target i686-unknown-linux-gnu
|
//@[i686] compile-flags: --target i686-unknown-linux-gnu
|
||||||
//[i686] needs-llvm-components: x86
|
//@[i686] needs-llvm-components: x86
|
||||||
// revisions: x86-64
|
//@ revisions: x86-64
|
||||||
//[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
|
//@[x86-64] compile-flags: --target x86_64-unknown-linux-gnu
|
||||||
//[x86-64] needs-llvm-components: x86
|
//@[x86-64] needs-llvm-components: x86
|
||||||
// revisions: x86-64-win
|
//@ revisions: x86-64-win
|
||||||
//[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
|
//@[x86-64-win] compile-flags: --target x86_64-pc-windows-msvc
|
||||||
//[x86-64-win] needs-llvm-components: x86
|
//@[x86-64-win] needs-llvm-components: x86
|
||||||
// revisions: arm
|
//@ revisions: arm
|
||||||
//[arm] compile-flags: --target arm-unknown-linux-gnueabi
|
//@[arm] compile-flags: --target arm-unknown-linux-gnueabi
|
||||||
//[arm] needs-llvm-components: arm
|
//@[arm] needs-llvm-components: arm
|
||||||
// revisions: aarch64
|
//@ revisions: aarch64
|
||||||
//[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
|
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
|
||||||
//[aarch64] needs-llvm-components: aarch64
|
//@[aarch64] needs-llvm-components: aarch64
|
||||||
// revisions: s390x
|
//@ revisions: s390x
|
||||||
//[s390x] compile-flags: --target s390x-unknown-linux-gnu
|
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu
|
||||||
//[s390x] needs-llvm-components: systemz
|
//@[s390x] needs-llvm-components: systemz
|
||||||
// revisions: mips
|
//@ revisions: mips
|
||||||
//[mips] compile-flags: --target mips-unknown-linux-gnu
|
//@[mips] compile-flags: --target mips-unknown-linux-gnu
|
||||||
//[mips] needs-llvm-components: mips
|
//@[mips] needs-llvm-components: mips
|
||||||
// revisions: mips64
|
//@ revisions: mips64
|
||||||
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
|
//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
|
||||||
//[mips64] needs-llvm-components: mips
|
//@[mips64] needs-llvm-components: mips
|
||||||
// revisions: sparc
|
//@ revisions: sparc
|
||||||
//[sparc] compile-flags: --target sparc-unknown-linux-gnu
|
//@[sparc] compile-flags: --target sparc-unknown-linux-gnu
|
||||||
//[sparc] needs-llvm-components: sparc
|
//@[sparc] needs-llvm-components: sparc
|
||||||
// revisions: sparc64
|
//@ revisions: sparc64
|
||||||
//[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
|
//@[sparc64] compile-flags: --target sparc64-unknown-linux-gnu
|
||||||
//[sparc64] needs-llvm-components: sparc
|
//@[sparc64] needs-llvm-components: sparc
|
||||||
// revisions: powerpc64
|
//@ revisions: powerpc64
|
||||||
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
|
//@[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
|
||||||
//[powerpc64] needs-llvm-components: powerpc
|
//@[powerpc64] needs-llvm-components: powerpc
|
||||||
// revisions: riscv
|
//@ revisions: riscv
|
||||||
//[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
|
//@[riscv] compile-flags: --target riscv64gc-unknown-linux-gnu
|
||||||
//[riscv] needs-llvm-components: riscv
|
//@[riscv] needs-llvm-components: riscv
|
||||||
// revisions: loongarch64
|
//@ revisions: loongarch64
|
||||||
//[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
|
//@[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
|
||||||
//[loongarch64] needs-llvm-components: loongarch
|
//@[loongarch64] needs-llvm-components: loongarch
|
||||||
//[loongarch64] min-llvm-version: 17
|
//@[loongarch64] min-llvm-version: 17
|
||||||
// revisions: wasm
|
//@ revisions: wasm
|
||||||
//[wasm] compile-flags: --target wasm32-unknown-unknown
|
//@[wasm] compile-flags: --target wasm32-unknown-unknown
|
||||||
//[wasm] needs-llvm-components: webassembly
|
//@[wasm] needs-llvm-components: webassembly
|
||||||
// revisions: wasi
|
//@ revisions: wasi
|
||||||
//[wasi] compile-flags: --target wasm32-wasi
|
//@[wasi] compile-flags: --target wasm32-wasi
|
||||||
//[wasi] needs-llvm-components: webassembly
|
//@[wasi] needs-llvm-components: webassembly
|
||||||
// revisions: bpf
|
//@ revisions: bpf
|
||||||
//[bpf] compile-flags: --target bpfeb-unknown-none
|
//@[bpf] compile-flags: --target bpfeb-unknown-none
|
||||||
//[bpf] needs-llvm-components: bpf
|
//@[bpf] needs-llvm-components: bpf
|
||||||
// revisions: m68k
|
//@ revisions: m68k
|
||||||
//[m68k] compile-flags: --target m68k-unknown-linux-gnu
|
//@[m68k] compile-flags: --target m68k-unknown-linux-gnu
|
||||||
//[m68k] needs-llvm-components: m68k
|
//@[m68k] needs-llvm-components: m68k
|
||||||
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
|
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
|
||||||
// see https://github.com/rust-lang/rust/issues/117480
|
// see https://github.com/rust-lang/rust/issues/117480
|
||||||
/* revisions: nvptx64
|
/* revisions: nvptx64
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// aux-build:anon-extern-mod-cross-crate-1.rs
|
//@ aux-build:anon-extern-mod-cross-crate-1.rs
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
extern crate anonexternmod;
|
extern crate anonexternmod;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// aux-build:anon-extern-mod-cross-crate-1.rs
|
//@ aux-build:anon-extern-mod-cross-crate-1.rs
|
||||||
// aux-build:anon-extern-mod-cross-crate-1.rs
|
//@ aux-build:anon-extern-mod-cross-crate-1.rs
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
extern crate anonexternmod;
|
extern crate anonexternmod;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
|
//@ 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 "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
|
||||||
// normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
|
//@ normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
|
||||||
// normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
|
//@ normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
|
||||||
// This pattern is prepared for when we account for alignment in the niche.
|
// 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:
|
// Some attributes are only computed for release builds:
|
||||||
// compile-flags: -O
|
//@ compile-flags: -O
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// check-pass
|
//@ check-pass
|
||||||
|
|
||||||
#[repr(Rust)]
|
#[repr(Rust)]
|
||||||
struct A;
|
struct A;
|
||||||
|
|
6
tests/ui/abi/extern/extern-call-deep.rs
vendored
6
tests/ui/abi/extern/extern-call-deep.rs
vendored
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
// ignore-emscripten blows the JS stack
|
//@ ignore-emscripten blows the JS stack
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-call-deep2.rs
vendored
4
tests/ui/abi/extern/extern-call-deep2.rs
vendored
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(unused_must_use)]
|
#![allow(unused_must_use)]
|
||||||
// ignore-emscripten no threads support
|
//@ ignore-emscripten no threads support
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
2
tests/ui/abi/extern/extern-call-direct.rs
vendored
2
tests/ui/abi/extern/extern-call-direct.rs
vendored
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// Test direct calls to extern fns.
|
// Test direct calls to extern fns.
|
||||||
|
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-call-indirect.rs
vendored
4
tests/ui/abi/extern/extern-call-indirect.rs
vendored
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-call-scrub.rs
vendored
4
tests/ui/abi/extern/extern-call-scrub.rs
vendored
|
@ -1,10 +1,10 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(unused_must_use)]
|
#![allow(unused_must_use)]
|
||||||
// This time we're testing repeatedly going up and down both stacks to
|
// This time we're testing repeatedly going up and down both stacks to
|
||||||
// make sure the stack pointers are maintained properly in both
|
// make sure the stack pointers are maintained properly in both
|
||||||
// directions
|
// directions
|
||||||
|
|
||||||
// ignore-emscripten no threads support
|
//@ ignore-emscripten no threads support
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
6
tests/ui/abi/extern/extern-crosscrate.rs
vendored
6
tests/ui/abi/extern/extern-crosscrate.rs
vendored
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// aux-build:extern-crosscrate-source.rs
|
//@ aux-build:extern-crosscrate-source.rs
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-TwoU16s.rs
vendored
4
tests/ui/abi/extern/extern-pass-TwoU16s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![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
|
// Test a foreign function that accepts and returns a struct
|
||||||
// by value.
|
// by value.
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-TwoU32s.rs
vendored
4
tests/ui/abi/extern/extern-pass-TwoU32s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![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
|
// Test a foreign function that accepts and returns a struct
|
||||||
// by value.
|
// by value.
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-TwoU64s.rs
vendored
4
tests/ui/abi/extern/extern-pass-TwoU64s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![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
|
// Test a foreign function that accepts and returns a struct
|
||||||
// by value.
|
// by value.
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-TwoU8s.rs
vendored
4
tests/ui/abi/extern/extern-pass-TwoU8s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![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
|
// Test a foreign function that accepts and returns a struct
|
||||||
// by value.
|
// by value.
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-char.rs
vendored
4
tests/ui/abi/extern/extern-pass-char.rs
vendored
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc for ffi testing
|
//@ ignore-wasm32-bare no libc for ffi testing
|
||||||
|
|
||||||
// Test a function that takes/returns a u8.
|
// Test a function that takes/returns a u8.
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-double.rs
vendored
4
tests/ui/abi/extern/extern-pass-double.rs
vendored
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc for ffi testing
|
//@ ignore-wasm32-bare no libc for ffi testing
|
||||||
|
|
||||||
#[link(name = "rust_test_helpers", kind = "static")]
|
#[link(name = "rust_test_helpers", kind = "static")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
8
tests/ui/abi/extern/extern-pass-empty.rs
vendored
8
tests/ui/abi/extern/extern-pass-empty.rs
vendored
|
@ -1,11 +1,11 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.
|
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.
|
||||||
|
|
||||||
// Test a foreign function that accepts empty struct.
|
// Test a foreign function that accepts empty struct.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
// ignore-msvc
|
//@ ignore-msvc
|
||||||
// ignore-emscripten emcc asserts on an empty struct as an argument
|
//@ ignore-emscripten emcc asserts on an empty struct as an argument
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
struct TwoU8s {
|
struct TwoU8s {
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-u32.rs
vendored
4
tests/ui/abi/extern/extern-pass-u32.rs
vendored
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc for ffi testing
|
//@ ignore-wasm32-bare no libc for ffi testing
|
||||||
|
|
||||||
// Test a function that takes/returns a u32.
|
// Test a function that takes/returns a u32.
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-pass-u64.rs
vendored
4
tests/ui/abi/extern/extern-pass-u64.rs
vendored
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc for ffi testing
|
//@ ignore-wasm32-bare no libc for ffi testing
|
||||||
|
|
||||||
// Test a call to a function that takes/returns a u64.
|
// Test a call to a function that takes/returns a u64.
|
||||||
|
|
||||||
|
|
4
tests/ui/abi/extern/extern-return-TwoU16s.rs
vendored
4
tests/ui/abi/extern/extern-return-TwoU16s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
pub struct TwoU16s {
|
pub struct TwoU16s {
|
||||||
one: u16,
|
one: u16,
|
||||||
|
|
4
tests/ui/abi/extern/extern-return-TwoU32s.rs
vendored
4
tests/ui/abi/extern/extern-return-TwoU32s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
pub struct TwoU32s {
|
pub struct TwoU32s {
|
||||||
one: u32,
|
one: u32,
|
||||||
|
|
4
tests/ui/abi/extern/extern-return-TwoU64s.rs
vendored
4
tests/ui/abi/extern/extern-return-TwoU64s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
pub struct TwoU64s {
|
pub struct TwoU64s {
|
||||||
one: u64,
|
one: u64,
|
||||||
|
|
4
tests/ui/abi/extern/extern-return-TwoU8s.rs
vendored
4
tests/ui/abi/extern/extern-return-TwoU8s.rs
vendored
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
pub struct TwoU8s {
|
pub struct TwoU8s {
|
||||||
one: u8,
|
one: u8,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-emscripten no threads support
|
//@ ignore-emscripten no threads support
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// aux-build:foreign_lib.rs
|
//@ aux-build:foreign_lib.rs
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
// Check that we can still call duplicated extern (imported) functions
|
// Check that we can still call duplicated extern (imported) functions
|
||||||
// which were declared in another crate. See issues #32740 and #32783.
|
// which were declared in another crate. See issues #32740 and #32783.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes, improper_ctypes_definitions)]
|
#![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)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct S {
|
pub struct S {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ABI is cdecl by default
|
// ABI is cdecl by default
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// aux-build:foreign_lib.rs
|
//@ aux-build:foreign_lib.rs
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
// The purpose of this test is to check that we can
|
// The purpose of this test is to check that we can
|
||||||
// successfully (and safely) invoke external, cdecl
|
// successfully (and safely) invoke external, cdecl
|
||||||
// functions from outside the crate.
|
// functions from outside the crate.
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
|
|
||||||
extern crate foreign_lib;
|
extern crate foreign_lib;
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
// This is basically the same test as tests/ui/simd/target-feature-mixup.rs but for floats and
|
// This is basically the same test as tests/ui/simd/target-feature-mixup.rs but for floats and
|
||||||
// without #[repr(simd)]
|
// without #[repr(simd)]
|
||||||
|
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-emscripten
|
//@ ignore-emscripten
|
||||||
// ignore-sgx no processes
|
//@ ignore-sgx no processes
|
||||||
|
|
||||||
#![feature(avx512_target_feature)]
|
#![feature(avx512_target_feature)]
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct Quad {
|
pub struct Quad {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct QuadFloats {
|
pub struct QuadFloats {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm
|
//@ ignore-wasm
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// dont-check-compiler-stderr (rust-lang/rust#54222)
|
//@ 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")]
|
#[link(name = "rust_test_helpers", kind = "static")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#[link(name = "rust_test_helpers", kind = "static")]
|
#[link(name = "rust_test_helpers", kind = "static")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// #11303, #11040:
|
// #11303, #11040:
|
||||||
// This would previously crash on i686 Linux due to abi differences
|
// This would previously crash on i686 Linux due to abi differences
|
||||||
// between returning an Option<T> and T, where T is a non nullable
|
// between returning an Option<T> and T, where T is a non nullable
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
|
||||||
// MSVC doesn't support 128 bit integers, and other Windows
|
// MSVC doesn't support 128 bit integers, and other Windows
|
||||||
// C compilers have very inconsistent views on how the ABI
|
// C compilers have very inconsistent views on how the ABI
|
||||||
// should look like.
|
// should look like.
|
||||||
|
|
||||||
// ignore-windows
|
//@ ignore-windows
|
||||||
// ignore-32bit
|
//@ ignore-32bit
|
||||||
|
|
||||||
#[link(name = "rust_test_helpers", kind = "static")]
|
#[link(name = "rust_test_helpers", kind = "static")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// compile-flags: -C relocation-model=pic
|
//@ compile-flags: -C relocation-model=pic
|
||||||
// needs-relocation-model-pic
|
//@ needs-relocation-model-pic
|
||||||
|
|
||||||
#![feature(cfg_relocation_model)]
|
#![feature(cfg_relocation_model)]
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// ignore-tidy-linelength
|
// ignore-tidy-linelength
|
||||||
// revisions: riscv32 riscv64
|
//@ revisions: riscv32 riscv64
|
||||||
//
|
//
|
||||||
// [riscv32] needs-llvm-components: riscv
|
//@ [riscv32] needs-llvm-components: riscv
|
||||||
// [riscv32] compile-flags: --target=riscv32i-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
|
//@ [riscv32] compile-flags: --target=riscv32i-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
|
||||||
// [riscv64] needs-llvm-components: riscv
|
//@ [riscv64] needs-llvm-components: riscv
|
||||||
// [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
|
//@ [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
|
||||||
#![no_core]
|
#![no_core]
|
||||||
#![feature(
|
#![feature(
|
||||||
no_core,
|
no_core,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// revisions: normal opt
|
//@ revisions: normal opt
|
||||||
// check-pass
|
//@ check-pass
|
||||||
//[opt] compile-flags: -Zmir-opt-level=3
|
//@[opt] compile-flags: -Zmir-opt-level=3
|
||||||
|
|
||||||
#![feature(unboxed_closures, tuple_trait)]
|
#![feature(unboxed_closures, tuple_trait)]
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
// ignore-emscripten can't run commands
|
//@ ignore-emscripten can't run commands
|
||||||
// ignore-sgx no processes
|
//@ ignore-sgx no processes
|
||||||
// ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
|
//@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// revisions: aarch64 x32 x64
|
//@ revisions: aarch64 x32 x64
|
||||||
// run-pass
|
//@ run-pass
|
||||||
//[aarch64] only-aarch64
|
//@[aarch64] only-aarch64
|
||||||
//[aarch64] min-llvm-version: 18
|
//@[aarch64] min-llvm-version: 18
|
||||||
//[x32] only-x86
|
//@[x32] only-x86
|
||||||
//[x64] only-x86_64
|
//@[x64] only-x86_64
|
||||||
// ignore-sgx no processes
|
//@ ignore-sgx no processes
|
||||||
// ignore-musl FIXME #31506
|
//@ ignore-musl FIXME #31506
|
||||||
// ignore-fuchsia no exception handler registered for segfault
|
//@ ignore-fuchsia no exception handler registered for segfault
|
||||||
// compile-flags: -C lto
|
//@ compile-flags: -C lto
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
// ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
|
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
|
||||||
|
|
||||||
include!("stack-probes.rs");
|
include!("stack-probes.rs");
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// revisions: aarch64 x32 x64
|
//@ revisions: aarch64 x32 x64
|
||||||
// run-pass
|
//@ run-pass
|
||||||
//[aarch64] only-aarch64
|
//@[aarch64] only-aarch64
|
||||||
//[aarch64] min-llvm-version: 18
|
//@[aarch64] min-llvm-version: 18
|
||||||
//[x32] only-x86
|
//@[x32] only-x86
|
||||||
//[x64] only-x86_64
|
//@[x64] only-x86_64
|
||||||
// ignore-emscripten no processes
|
//@ ignore-emscripten no processes
|
||||||
// ignore-sgx no processes
|
//@ ignore-sgx no processes
|
||||||
// ignore-fuchsia no exception handler registered for segfault
|
//@ ignore-fuchsia no exception handler registered for segfault
|
||||||
// ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
|
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::mem::MaybeUninit;
|
use std::mem::MaybeUninit;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// only-x86_64-unknown-linux-gnu
|
//@ only-x86_64-unknown-linux-gnu
|
||||||
// revisions: ssp no-ssp
|
//@ revisions: ssp no-ssp
|
||||||
// [ssp] compile-flags: -Z stack-protector=all
|
//@ [ssp] compile-flags: -Z stack-protector=all
|
||||||
// compile-flags: -C opt-level=2
|
//@ compile-flags: -C opt-level=2
|
||||||
// compile-flags: -g
|
//@ compile-flags: -g
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::process::{Command, ExitStatus};
|
use std::process::{Command, ExitStatus};
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// Constants (static variables) can be used to match in patterns, but mutable
|
// 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
|
// statics cannot. This ensures that there's some form of error if this is
|
||||||
// attempted.
|
// attempted.
|
||||||
|
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(non_snake_case)]
|
#![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)]
|
#[derive(Clone, Copy)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// check-pass
|
//@ check-pass
|
||||||
#![allow(improper_ctypes_definitions)]
|
#![allow(improper_ctypes_definitions)]
|
||||||
#![feature(unsized_tuple_coercion)]
|
#![feature(unsized_tuple_coercion)]
|
||||||
#![feature(unsized_fn_params)]
|
#![feature(unsized_fn_params)]
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
// revisions: x64 i686 aarch64 arm riscv32 riscv64
|
//@ revisions: x64 i686 aarch64 arm riscv32 riscv64
|
||||||
//
|
//
|
||||||
// [x64] needs-llvm-components: x86
|
//@ [x64] needs-llvm-components: x86
|
||||||
// [x64] compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
|
//@ [x64] compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
|
||||||
// [i686] needs-llvm-components: x86
|
//@ [i686] needs-llvm-components: x86
|
||||||
// [i686] compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
|
//@ [i686] compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
|
||||||
// [aarch64] needs-llvm-components: aarch64
|
//@ [aarch64] needs-llvm-components: aarch64
|
||||||
// [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
|
//@ [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
|
||||||
// [arm] needs-llvm-components: arm
|
//@ [arm] needs-llvm-components: arm
|
||||||
// [arm] compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
|
//@ [arm] compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
|
||||||
// [riscv32] needs-llvm-components: riscv
|
//@ [riscv32] needs-llvm-components: riscv
|
||||||
// [riscv32] compile-flags: --target=riscv32i-unknown-none-elf --crate-type=rlib
|
//@ [riscv32] compile-flags: --target=riscv32i-unknown-none-elf --crate-type=rlib
|
||||||
// [riscv64] needs-llvm-components: riscv
|
//@ [riscv64] needs-llvm-components: riscv
|
||||||
// [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf --crate-type=rlib
|
//@ [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf --crate-type=rlib
|
||||||
#![no_core]
|
#![no_core]
|
||||||
#![feature(
|
#![feature(
|
||||||
no_core,
|
no_core,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-wasm32-bare no libc to test ffi with
|
//@ ignore-wasm32-bare no libc to test ffi with
|
||||||
#![feature(c_variadic)]
|
#![feature(c_variadic)]
|
||||||
|
|
||||||
use std::ffi::VaList;
|
use std::ffi::VaList;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// only-windows
|
//@ only-windows
|
||||||
// GetLastError doesn't seem to work with stack switching
|
// GetLastError doesn't seem to work with stack switching
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// only-windows
|
//@ only-windows
|
||||||
|
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
pub type HANDLE = usize;
|
pub type HANDLE = usize;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
// Regression test for issue #374
|
// Regression test for issue #374
|
||||||
|
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
|
|
||||||
enum sty { ty_nil, }
|
enum sty { ty_nil, }
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// compile-flags:-C panic=abort
|
//@ compile-flags:-C panic=abort
|
||||||
|
|
||||||
#![feature(alloc_error_handler)]
|
#![feature(alloc_error_handler)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// compile-flags:-C panic=abort
|
//@ compile-flags:-C panic=abort
|
||||||
|
|
||||||
#![feature(alloc_error_handler)]
|
#![feature(alloc_error_handler)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// compile-flags:-C panic=abort
|
//@ compile-flags:-C panic=abort
|
||||||
|
|
||||||
#![feature(alloc_error_handler)]
|
#![feature(alloc_error_handler)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-emscripten no processes
|
//@ ignore-emscripten no processes
|
||||||
// ignore-sgx no processes
|
//@ ignore-sgx no processes
|
||||||
|
|
||||||
use std::alloc::{Layout, handle_alloc_error};
|
use std::alloc::{Layout, handle_alloc_error};
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
// aux-build:custom.rs
|
//@ aux-build:custom.rs
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
|
|
||||||
extern crate custom;
|
extern crate custom;
|
||||||
extern crate helper;
|
extern crate helper;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
// aux-build:custom.rs
|
//@ aux-build:custom.rs
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
|
|
||||||
extern crate custom;
|
extern crate custom;
|
||||||
extern crate helper;
|
extern crate helper;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![feature(slice_ptr_get)]
|
#![feature(slice_ptr_get)]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
// aux-build:custom.rs
|
//@ aux-build:custom.rs
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
|
|
||||||
#![allow(nonstandard_style)]
|
#![allow(nonstandard_style)]
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-android no libc
|
//@ ignore-android no libc
|
||||||
// ignore-emscripten no libc
|
//@ ignore-emscripten no libc
|
||||||
// ignore-sgx no libc
|
//@ ignore-sgx no libc
|
||||||
// ignore-wasm32 no libc
|
//@ ignore-wasm32 no libc
|
||||||
// only-linux
|
//@ only-linux
|
||||||
// compile-flags:-C panic=abort
|
//@ compile-flags:-C panic=abort
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
|
|
||||||
#![feature(rustc_private, lang_items)]
|
#![feature(rustc_private, lang_items)]
|
||||||
#![feature(alloc_error_handler)]
|
#![feature(alloc_error_handler)]
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// ignore-android no libc
|
//@ ignore-android no libc
|
||||||
// ignore-emscripten no libc
|
//@ ignore-emscripten no libc
|
||||||
// ignore-sgx no libc
|
//@ ignore-sgx no libc
|
||||||
// ignore-wasm32 no libc
|
//@ ignore-wasm32 no libc
|
||||||
// only-linux
|
//@ only-linux
|
||||||
// compile-flags:-C panic=abort
|
//@ compile-flags:-C panic=abort
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
|
|
||||||
#![feature(rustc_private, lang_items)]
|
#![feature(rustc_private, lang_items)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// Check that `Allocator` is object safe, this allows for polymorphic allocators
|
// Check that `Allocator` is object safe, this allows for polymorphic allocators
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// aux-build:system-allocator.rs
|
//@ aux-build:system-allocator.rs
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
// error-pattern: the `#[global_allocator]` in
|
//@ error-pattern: the `#[global_allocator]` in
|
||||||
|
|
||||||
extern crate system_allocator;
|
extern crate system_allocator;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// aux-build:system-allocator.rs
|
//@ aux-build:system-allocator.rs
|
||||||
// aux-build:system-allocator2.rs
|
//@ aux-build:system-allocator2.rs
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
// error-pattern: the `#[global_allocator]` in
|
//@ error-pattern: the `#[global_allocator]` in
|
||||||
|
|
||||||
|
|
||||||
extern crate system_allocator;
|
extern crate system_allocator;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// aux-build:custom.rs
|
//@ aux-build:custom.rs
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![feature(slice_ptr_get)]
|
#![feature(slice_ptr_get)]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// aux-build:custom.rs
|
//@ aux-build:custom.rs
|
||||||
// aux-build:custom-as-global.rs
|
//@ aux-build:custom-as-global.rs
|
||||||
// aux-build:helper.rs
|
//@ aux-build:helper.rs
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// force-host
|
//@ force-host
|
||||||
// no-prefer-dynamic
|
//@ no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type = "proc-macro"]
|
#![crate_type = "proc-macro"]
|
||||||
#![feature(proc_macro_diagnostic, proc_macro_span, proc_macro_def_site)]
|
#![feature(proc_macro_diagnostic, proc_macro_span, proc_macro_def_site)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags: --error-format human-annotate-rs -Z unstable-options
|
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
|
||||||
// error-pattern:cannot find type `Iter` in this scope
|
//@ error-pattern:cannot find type `Iter` in this scope
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let x: Iter;
|
let x: Iter;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// aux-build:other_file.rs
|
//@ aux-build:other_file.rs
|
||||||
// compile-flags: --error-format human-annotate-rs -Z unstable-options
|
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
|
||||||
|
|
||||||
extern crate other_file;
|
extern crate other_file;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// aux-build:multispan.rs
|
//@ aux-build:multispan.rs
|
||||||
// error-pattern:hello to you, too!
|
//@ error-pattern:hello to you, too!
|
||||||
// compile-flags: --error-format human-annotate-rs -Z unstable-options
|
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
|
||||||
|
|
||||||
#![feature(proc_macro_hygiene)]
|
#![feature(proc_macro_hygiene)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Tests that anonymous parameters are a hard error in edition 2018.
|
// Tests that anonymous parameters are a hard error in edition 2018.
|
||||||
|
|
||||||
// edition:2018
|
//@ edition:2018
|
||||||
|
|
||||||
trait T {
|
trait T {
|
||||||
fn foo(i32); //~ expected one of `:`, `@`, or `|`, found `)`
|
fn foo(i32); //~ expected one of `:`, `@`, or `|`, found `)`
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#![warn(anonymous_parameters)]
|
#![warn(anonymous_parameters)]
|
||||||
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
||||||
|
|
||||||
// check-pass
|
//@ check-pass
|
||||||
// edition:2015
|
//@ edition:2015
|
||||||
// run-rustfix
|
//@ run-rustfix
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
trait T {
|
trait T {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#![warn(anonymous_parameters)]
|
#![warn(anonymous_parameters)]
|
||||||
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
||||||
|
|
||||||
// check-pass
|
//@ check-pass
|
||||||
// edition:2015
|
//@ edition:2015
|
||||||
// run-rustfix
|
//@ run-rustfix
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
trait T {
|
trait T {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// edition:2018
|
//@ edition:2018
|
||||||
// aux-build:anon-params-edition-hygiene.rs
|
//@ aux-build:anon-params-edition-hygiene.rs
|
||||||
|
|
||||||
// This warning is still surfaced
|
// This warning is still surfaced
|
||||||
#![allow(anonymous_parameters)]
|
#![allow(anonymous_parameters)]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// edition:2015
|
//@ edition:2015
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! generate_trait_2015_ident {
|
macro_rules! generate_trait_2015_ident {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-rustfix
|
//@ run-rustfix
|
||||||
|
|
||||||
fn f() {}
|
fn f() {}
|
||||||
fn i(_: u32) {}
|
fn i(_: u32) {}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-rustfix
|
//@ run-rustfix
|
||||||
|
|
||||||
fn f() {}
|
fn f() {}
|
||||||
fn i(_: u32) {}
|
fn i(_: u32) {}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![allow(stable_features)]
|
#![allow(stable_features)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// run-fail
|
//@ run-fail
|
||||||
// error-pattern:index out of bounds
|
//@ error-pattern:index out of bounds
|
||||||
// ignore-emscripten no processes
|
//@ ignore-emscripten no processes
|
||||||
|
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// needs-unwind
|
//@ needs-unwind
|
||||||
#![allow(overflowing_literals)]
|
#![allow(overflowing_literals)]
|
||||||
|
|
||||||
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
|
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
|
||||||
// destructor.
|
// destructor.
|
||||||
|
|
||||||
// ignore-emscripten no threads support
|
//@ ignore-emscripten no threads support
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
// needs-unwind
|
//@ needs-unwind
|
||||||
#![allow(overflowing_literals)]
|
#![allow(overflowing_literals)]
|
||||||
|
|
||||||
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
|
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
|
||||||
// destructor.
|
// destructor.
|
||||||
|
|
||||||
// ignore-emscripten no threads support
|
//@ ignore-emscripten no threads support
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
|
|
||||||
// issues #10618 and #16382
|
// issues #10618 and #16382
|
||||||
// pretty-expanded FIXME #23616
|
//@ pretty-expanded FIXME #23616
|
||||||
|
|
||||||
const SIZE: isize = 25;
|
const SIZE: isize = 25;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// Check that the various ways of getting to a reference to a vec (both sized
|
// Check that the various ways of getting to a reference to a vec (both sized
|
||||||
// and unsized) work properly.
|
// and unsized) work properly.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// Ensure that we can copy out of a fixed-size array.
|
// Ensure that we can copy out of a fixed-size array.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// run-pass
|
//@ run-pass
|
||||||
|
|
||||||
// Ensure that we can do a destructuring bind of a fixed-size array,
|
// Ensure that we can do a destructuring bind of a fixed-size array,
|
||||||
// even when the element type has a destructor.
|
// even when the element type has a destructor.
|
||||||
|
|
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