rust/tests/ui/abi
Matthias Krüger e5a639dbd0
Rollup merge of #137771 - estebank:abi-sugg, r=compiler-errors
Tweak incorrect ABI suggestion and make suggestion verbose

Provide a better suggestion message, and make the suggestion verbose.

```
error[E0703]: invalid ABI: found `riscv-interrupt`
  --> $DIR/riscv-discoverability-guidance.rs:17:8
   |
LL | extern "riscv-interrupt" fn isr() {}
   |        ^^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `riscv-interrupt-m`
   |
LL | extern "riscv-interrupt-m" fn isr() {}
   |                        ++
```
2025-03-01 05:49:56 +01:00
..
cross-crate tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
extern tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
foreign tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issues Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
mir Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
numbers-arithmetic Ensure tests don't fail on i586 in CI 2024-07-01 17:39:30 +01:00
statics Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
struct-enums Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
union Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
abi-sysv64-arg-passing.rs Enable more tests on Windows 2025-02-03 10:39:32 -05:00
abi-sysv64-register-usage.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
abi-typo-unstable.rs
abi-typo-unstable.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
anon-extern-mod.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
arm-unadjusted-intrinsic.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
c-stack-as-value.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
c-stack-returning-int64.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
c-zst.aarch64-darwin.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
c-zst.powerpc-linux.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
c-zst.rs use add-core-stubs / minicore for a few more tests 2025-02-16 18:37:50 +01:00
c-zst.s390x-linux.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
c-zst.sparc64-linux.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
c-zst.x86_64-linux.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
c-zst.x86_64-pc-windows-gnu.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
cabi-int-widening.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
compatibility.rs tests: use minicore in tests/ui/abi/compatibility.rs as an example 2024-10-31 18:20:11 +08:00
debug.rs adjust UI tests 2025-01-10 02:22:57 +01:00
debug.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
explicit_repr_rust.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fixed_x18.rs Simplify check for unsupported architectures 2024-05-29 16:58:46 +02:00
homogenous-floats-target-feature-mixup.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
issue-28676.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
large-byval-align.rs Enable more tests on Windows 2025-02-03 10:39:32 -05:00
lib-defaults.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
nullable-pointer-ffi-compat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
relocation_model_pic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
riscv-discoverability-guidance.riscv32.stderr Rollup merge of #137771 - estebank:abi-sugg, r=compiler-errors 2025-03-01 05:49:56 +01:00
riscv-discoverability-guidance.riscv64.stderr Rollup merge of #137771 - estebank:abi-sugg, r=compiler-errors 2025-03-01 05:49:56 +01:00
riscv-discoverability-guidance.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
rustcall-generic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
segfault-no-out-of-stack.rs Insert null checks for pointer dereferences when debug assertions are enabled 2025-01-31 11:13:34 +00:00
shadow-call-stack-without-fixed-x18.rs unconditionally allow shadow call-stack for AArch64 whenever fixed-x18 is applied 2024-08-09 19:35:02 +08:00
simd-abi-checks-avx.rs vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
simd-abi-checks-avx.stderr vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
simd-abi-checks-empty-list.rs mono-time abi_check: unify error paths for call and definition sites 2025-02-20 11:55:31 +01:00
simd-abi-checks-empty-list.stderr mono-time abi_check: unify error paths for call and definition sites 2025-02-20 11:55:31 +01:00
simd-abi-checks-s390x.rs mono-time abi_check: unify error paths for call and definition sites 2025-02-20 11:55:31 +01:00
simd-abi-checks-s390x.z10.stderr mono-time abi_check: unify error paths for call and definition sites 2025-02-20 11:55:31 +01:00
simd-abi-checks-s390x.z13_no_vector.stderr mono-time abi_check: unify error paths for call and definition sites 2025-02-20 11:55:31 +01:00
simd-abi-checks-s390x.z13_soft_float.stderr mono-time abi_check: unify error paths for call and definition sites 2025-02-20 11:55:31 +01:00
simd-abi-checks-sse.rs vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
simd-abi-checks-sse.stderr vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
sparcv8plus-llvm19.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus-llvm19.sparc_cpu_v9_feature_v8plus.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus-llvm19.sparc_cpu_v9.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus-llvm19.sparc_feature_v8plus.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus-llvm19.sparc.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus-llvm19.sparcv8plus.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus.sparc_cpu_v9_feature_v8plus.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus.sparc_cpu_v9.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus.sparc_feature_v8plus.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus.sparc.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
sparcv8plus.sparcv8plus.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
stack-probes-lto.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
stack-probes.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
stack-protector.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sysv64-zst.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
sysv64-zst.stderr Update ui tests with LayoutData { uninhabited: ... } etc 2025-02-20 13:40:41 -06:00
unsized-args-in-c-abi-issues-94223-115845.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsupported.aarch64.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
unsupported.arm.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
unsupported.i686.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
unsupported.riscv32.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
unsupported.riscv64.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
unsupported.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
unsupported.x64.stderr tests: use minicore more 2025-02-24 09:26:54 +00:00
variadic-ffi.rs Allow "C-unwind" fn to have C variadics 2024-06-22 15:14:14 -07:00
vectorcall-abi-checks.rs vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
vectorcall-abi-checks.stderr vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
x86stdcall2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
x86stdcall.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00