Skip to content

Commit 9bb780c

Browse files
committed
add a few more missing test annotations
1 parent 100ff62 commit 9bb780c

File tree

4,518 files changed

+5353
-5353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,518 files changed

+5353
-5353
lines changed

tests/ui/abi/abi-sysv64-arg-passing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// Checks if the "sysv64" calling convention behaves the same as the
33
// "C" calling convention on platforms where both should be the same
44

tests/ui/abi/abi-sysv64-register-usage.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// run-pass
1+
//@run
22
// Checks if the correct registers are being used to pass arguments
33
// when the sysv64 ABI is specified.
44

55
// ignore-android
66
// ignore-arm
77
// ignore-aarch64
8-
// needs-asm-support
8+
//@needs-asm-support
99

1010
#[cfg(target_arch = "x86_64")]
1111
pub extern "sysv64" fn all_the_registers(

tests/ui/abi/anon-extern-mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// pretty-expanded FIXME #23616
33
// ignore-wasm32-bare no libc to test ffi with
44

tests/ui/abi/c-stack-as-value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// pretty-expanded FIXME #23616
33
// ignore-wasm32-bare no libc to test ffi with
44

tests/ui/abi/c-stack-returning-int64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test with
33
// ignore-sgx no libc
44

tests/ui/abi/cabi-int-widening.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33

44
#[link(name = "rust_test_helpers", kind = "static")]

tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:anon-extern-mod-cross-crate-1.rs
1+
//@run
2+
//@aux-build:anon-extern-mod-cross-crate-1.rs
33
// pretty-expanded FIXME #23616
44
// ignore-wasm32-bare no libc to test ffi with
55

tests/ui/abi/cross-crate/duplicated-external-mods.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
2-
// aux-build:anon-extern-mod-cross-crate-1.rs
3-
// aux-build:anon-extern-mod-cross-crate-1.rs
1+
//@run
2+
//@aux-build:anon-extern-mod-cross-crate-1.rs
3+
//@aux-build:anon-extern-mod-cross-crate-1.rs
44
// pretty-expanded FIXME #23616
55
// ignore-wasm32-bare no libc to test ffi with
66

tests/ui/abi/extern/extern-call-deep.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33
// ignore-emscripten blows the JS stack
44

tests/ui/abi/extern/extern-call-deep2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(unused_must_use)]
33
// ignore-emscripten no threads support
44
#![feature(rustc_private)]

tests/ui/abi/extern/extern-call-direct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// Test direct calls to extern fns.
33

44

tests/ui/abi/extern/extern-call-indirect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33

44
#![feature(rustc_private)]

tests/ui/abi/extern/extern-call-scrub.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(unused_must_use)]
33
// This time we're testing repeatedly going up and down both stacks to
44
// make sure the stack pointers are maintained properly in both

tests/ui/abi/extern/extern-crosscrate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:extern-crosscrate-source.rs
1+
//@run
2+
//@aux-build:extern-crosscrate-source.rs
33
// ignore-wasm32-bare no libc to test ffi with
44

55
#![feature(rustc_private)]

tests/ui/abi/extern/extern-pass-TwoU16s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-TwoU32s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-TwoU64s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-TwoU8s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc for ffi testing

tests/ui/abi/extern/extern-pass-char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc for ffi testing
33

44
// Test a function that takes/returns a u8.

tests/ui/abi/extern/extern-pass-double.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc for ffi testing
33

44
#[link(name = "rust_test_helpers", kind = "static")]

tests/ui/abi/extern/extern-pass-empty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.
33

44
// Test a foreign function that accepts empty struct.

tests/ui/abi/extern/extern-pass-u32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc for ffi testing
33

44
// Test a function that takes/returns a u32.

tests/ui/abi/extern/extern-pass-u64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc for ffi testing
33

44
// Test a call to a function that takes/returns a u64.

tests/ui/abi/extern/extern-return-TwoU16s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/extern/extern-return-TwoU32s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/extern/extern-return-TwoU64s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/extern/extern-return-TwoU8s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/foreign/foreign-call-no-runtime.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-emscripten no threads support
33

44
#![feature(rustc_private)]

tests/ui/abi/foreign/foreign-dupe.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:foreign_lib.rs
1+
//@run
2+
//@aux-build:foreign_lib.rs
33
// ignore-wasm32-bare no libc to test ffi with
44

55
// Check that we can still call duplicated extern (imported) functions

tests/ui/abi/foreign/foreign-fn-with-byval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes, improper_ctypes_definitions)]
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/foreign/foreign-no-abi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ABI is cdecl by default
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/foreign/invoke-external-foreign.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:foreign_lib.rs
1+
//@run
2+
//@aux-build:foreign_lib.rs
33
// ignore-wasm32-bare no libc to test ffi with
44

55
// The purpose of this test is to check that we can

tests/ui/abi/homogenous-floats-target-feature-mixup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// This is basically the same test as tests/ui/simd/target-feature-mixup.rs but for floats and
55
// without #[repr(simd)]
66

7-
// run-pass
7+
//@run
88
// ignore-emscripten
99
// ignore-sgx no processes
1010

tests/ui/abi/issue-28676.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(dead_code)]
33
#![allow(improper_ctypes)]
44

tests/ui/abi/issues/issue-62350-sysv-neg-reg-counts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(dead_code)]
33
#![allow(improper_ctypes)]
44

tests/ui/abi/issues/issue-97463-broken-abi-leaked-uninit-data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm
33
#![allow(dead_code)]
44
#![allow(improper_ctypes)]

tests/ui/abi/lib-defaults.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// dont-check-compiler-stderr (rust-lang/rust#54222)
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/mir/mir_codegen_calls_variadic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33

44
#[link(name = "rust_test_helpers", kind = "static")]

tests/ui/abi/nullable-pointer-ffi-compat.rs

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

tests/ui/abi/numbers-arithmetic/i128-ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(improper_ctypes)]
33

44
// MSVC doesn't support 128 bit integers, and other Windows

tests/ui/abi/rustcall-generic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@revisions: normal opt
22
//@check-pass
3-
//@[opt]compile-flags: -Zmir-opt-level=3
3+
//@[opt] compile-flags: -Zmir-opt-level=3
44

55
#![feature(unboxed_closures, tuple_trait)]
66

tests/ui/abi/segfault-no-out-of-stack.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22

33
#![allow(unused_imports)]
44
// ignore-emscripten can't run commands

tests/ui/abi/stack-probes-lto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-arm
33
// ignore-aarch64
44
// ignore-mips

tests/ui/abi/stack-probes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-arm
33
// ignore-aarch64
44
// ignore-mips

tests/ui/abi/stack-protector.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@run
22
// only-x86_64-unknown-linux-gnu
33
//@revisions: ssp no-ssp
4-
//@[ssp]compile-flags: -Z stack-protector=all
4+
//@[ssp] compile-flags: -Z stack-protector=all
55
//@compile-flags: -C opt-level=2
66
//@compile-flags: -g
77

tests/ui/abi/statics/static-mut-foreign.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// Constants (static variables) can be used to match in patterns, but mutable
33
// statics cannot. This ensures that there's some form of error if this is
44
// attempted.

tests/ui/abi/struct-enums/struct-return.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(dead_code)]
33
// ignore-wasm32-bare no libc to test ffi with
44

tests/ui/abi/union/union-c-interop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
#![allow(non_snake_case)]
33

44
// ignore-wasm32-bare no libc to test ffi with

tests/ui/abi/unsupported.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//@revisions: x64 i686 aarch64 arm
22
//
33
// [x64] needs-llvm-components: x86
4-
//@[x64]compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
4+
//@[x64] compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
55
// [i686] needs-llvm-components: x86
6-
//@[i686]compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
6+
//@[i686] compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
77
// [aarch64] needs-llvm-components: aarch64
8-
//@[aarch64]compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
8+
//@[aarch64] compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
99
// [arm] needs-llvm-components: arm
10-
//@[arm]compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
10+
//@[arm] compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
1111
#![no_core]
1212
#![feature(
1313
no_core,

tests/ui/abi/variadic-ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-wasm32-bare no libc to test ffi with
33
#![feature(c_variadic)]
44

tests/ui/abi/x86stdcall.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// only-windows
33
// GetLastError doesn't seem to work with stack switching
44

tests/ui/abi/x86stdcall2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// only-windows
33

44
#![allow(non_camel_case_types)]

tests/ui/alias-uninit-value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22

33
#![allow(non_camel_case_types)]
44
#![allow(dead_code)]

tests/ui/alloc-error/default-alloc-error-hook.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-pass
1+
//@run
22
// ignore-emscripten no processes
33
// ignore-sgx no processes
44

tests/ui/allocator/custom-in-block.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@run
22
// no-prefer-dynamic
3-
// aux-build:custom.rs
4-
// aux-build:helper.rs
3+
//@aux-build:custom.rs
4+
//@aux-build:helper.rs
55

66
extern crate custom;
77
extern crate helper;

tests/ui/allocator/custom-in-submodule.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// run-pass
1+
//@run
22
// no-prefer-dynamic
3-
// aux-build:custom.rs
4-
// aux-build:helper.rs
3+
//@aux-build:custom.rs
4+
//@aux-build:helper.rs
55

66
extern crate custom;
77
extern crate helper;

tests/ui/allocator/custom.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
1+
//@run
22

3-
// aux-build:helper.rs
3+
//@aux-build:helper.rs
44
// no-prefer-dynamic
55

66
#![feature(allocator_api)]

0 commit comments

Comments
 (0)