rust/tests/ui/asm
bors f7f8bdf2e0 Auto merge of #130195 - folkertdev:naked-asm-outside-naked-fn, r=Amanieu
disallow `naked_asm!` outside of `#[naked]` functions

tracking issue: https://github.com/rust-lang/rust/issues/90957
parent PR: https://github.com/rust-lang/rust/pull/128651

I split this out from the parent PR because it's self-contained and because the analysis has to search through all functions and there might be performance regressions.

r? `@Amanieu`
2024-09-11 13:47:26 +00:00
..
aarch64 Ban non-array SIMD 2024-09-09 19:39:43 -07:00
x86_64 Ban non-array SIMD 2024-09-09 19:39:43 -07:00
arm-low-dreg.rs compiler: Fix arm32 asm issues by hierarchically sorting reg classes 2024-06-22 21:39:58 -07:00
bad-arch.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
bad-arch.stderr trigger `unsafe_code` on `global_asm!` invocations 2024-02-20 00:14:53 +01:00
bad-template.aarch64.stderr Update tests 2024-03-03 09:24:38 -05:00
bad-template.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
bad-template.x86_64.stderr Update tests 2024-03-03 09:24:38 -05:00
binary_asm_labels.rs add lint for inline asm labels that look like binary 2024-07-09 01:23:49 +00:00
binary_asm_labels.stderr Update the `binary_asm_label` message 2024-07-18 17:00:43 -04:00
binary_asm_labels_allowed.rs Change `binary_asm_labels` to only fire on x86 and x86_64 2024-07-18 15:00:56 -05:00
const-error.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
const-error.stderr stabilize `asm_const` 2024-08-13 23:18:31 +02:00
const-refs-to-static.rs fix ICE when `asm_const` and `const_refs_to_static` are combined 2024-09-04 20:06:38 +02:00
const-refs-to-static.stderr fix ICE when `asm_const` and `const_refs_to_static` are combined 2024-09-04 20:06:38 +02:00
empty_global_asm.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
fail-const-eval-issue-121099.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
fail-const-eval-issue-121099.stderr stabilize `asm_const` 2024-08-13 23:18:31 +02:00
generic-const.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
inline-syntax.arm.stderr Fix two UI tests with incorrect directive / invalid revision 2024-02-14 09:13:53 +00:00
inline-syntax.arm_llvm_18.stderr Fix two UI tests with incorrect directive / invalid revision 2024-02-14 09:13:53 +00:00
inline-syntax.rs Remove useless configs in tests 2024-04-07 01:16:45 +02:00
inline-syntax.x86_64.stderr Fix two UI tests with incorrect directive / invalid revision 2024-02-14 09:13:53 +00:00
invalid-const-operand.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
invalid-const-operand.stderr stabilize `asm_const` 2024-08-13 23:18:31 +02:00
invalid-sym-operand.rs add `needs-asm-support` to invalid-sym-operand 2024-08-02 19:59:34 +01:00
invalid-sym-operand.stderr add `needs-asm-support` to invalid-sym-operand 2024-08-02 19:59:34 +01:00
issue-72570.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-72570.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-85247.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-85247.rwpi.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87802.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
issue-87802.stderr Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
issue-89305.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-89305.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-92378.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-97490.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-99071.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-99071.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-99122-2.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-99122.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-99122.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-113788.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-113788.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
may_unwind.rs Add needs-unwind annotations to a couple of tests 2024-03-25 14:19:07 +00:00
naked-asm-outside-naked-fn.rs disallow `naked_asm!` outside of `#[naked]` functions 2024-09-10 15:19:14 +02:00
naked-asm-outside-naked-fn.stderr disallow `naked_asm!` outside of `#[naked]` functions 2024-09-10 15:19:14 +02:00
naked-functions-ffi.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
naked-functions-ffi.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-inline.rs bootstrap `naked_asm!` for `compiler-builtins` 2024-09-09 12:47:40 +02:00
naked-functions-inline.stderr switch to an allowlist approach 2024-07-27 12:55:39 +02:00
naked-functions-instruction-set.rs switch to an allowlist approach 2024-07-27 12:55:39 +02:00
naked-functions-testattrs.rs switch to an allowlist approach 2024-07-27 12:55:39 +02:00
naked-functions-testattrs.stderr switch to an allowlist approach 2024-07-27 12:55:39 +02:00
naked-functions-unused.aarch64.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-unused.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
naked-functions-unused.x86_64.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
naked-functions.stderr Rollup merge of #127853 - folkertdev:naked-function-error-messages, r=bjorn3 2024-07-28 08:57:16 +02:00
naked-invalid-attr.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
naked-invalid-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-with-invalid-repr-attr.rs add uitest for naked functions and the repr attr on functions 2024-08-27 17:17:55 +02:00
naked-with-invalid-repr-attr.stderr add uitest for naked functions and the repr attr on functions 2024-08-27 17:17:55 +02:00
named-asm-labels.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
named-asm-labels.s Move /src/test to /tests 2023-01-11 09:32:08 +00:00
named-asm-labels.stderr stabilize `asm_const` 2024-08-13 23:18:31 +02:00
noreturn.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
parse-error.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
parse-error.stderr stabilize `asm_const` 2024-08-13 23:18:31 +02:00
reg-conflict.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
reg-conflict.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
simple_global_asm.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
type-check-1.rs stabilize `asm_const` 2024-08-13 23:18:31 +02:00
type-check-1.stderr stabilize `asm_const` 2024-08-13 23:18:31 +02:00
type-check-4.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
type-check-4.stderr Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
unpretty-expanded.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
unpretty-expanded.stdout [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
unsupported-option.fixed add `needs-asm-support` to `tests/ui/asm/unsupported-option.rs` 2024-07-27 19:27:20 +02:00
unsupported-option.rs add `needs-asm-support` to `tests/ui/asm/unsupported-option.rs` 2024-07-27 19:27:20 +02:00
unsupported-option.stderr add `needs-asm-support` to `tests/ui/asm/unsupported-option.rs` 2024-07-27 19:27:20 +02:00