rust/tests/ui/abi
Esteban Küber abf92c049d Use more accurate span for addr_of! suggestion
Use a multipart suggestion instead of a single whole-span replacement:

```
error[E0796]: creating a shared reference to a mutable static
  --> $DIR/reference-to-mut-static-unsafe-fn.rs:10:18
   |
LL |         let _y = &X;
   |                  ^^ shared reference to mutable static
   |
   = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior
help: use `addr_of!` instead to create a raw pointer
   |
LL |         let _y = addr_of!(X);
   |                  ~~~~~~~~~ +
```
2024-07-18 18:39:20 +00:00
..
cross-crate Remove libc from rust_get_test_int uses 2024-04-17 09:18:14 -04:00
extern Clean up users of rust_dbg_call 2024-04-17 15:08:08 -04:00
foreign Clean up users of rust_dbg_call 2024-04-17 15:08:08 -04: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 Use more accurate span for addr_of! suggestion 2024-07-18 18:39:20 +00: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00: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 Remove libc from rust_get_test_int uses 2024-04-17 09:18:14 -04:00
arm-unadjusted-intrinsic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
c-stack-as-value.rs Remove libc from rust_get_test_int uses 2024-04-17 09:18:14 -04:00
c-stack-returning-int64.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
cabi-int-widening.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
compatibility.rs Rollup merge of #123043 - GoldsteinE:fix/repr-c-dead-branches, r=oli-obk 2024-07-04 18:16:22 +02:00
debug.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
debug.stderr Refactor float Primitives to a separate Float type 2024-05-06 14:56:10 +01: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 Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
issue-28676.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07: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
removed-wasm-abi.rs Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
removed-wasm-abi.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
riscv-discoverability-guidance.riscv32.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
riscv-discoverability-guidance.riscv64.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
riscv-discoverability-guidance.rs llvm: update riscv target feature to match LLVM 19 2024-04-17 16:15:24 -04: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 Remove libc from more tests 2024-04-17 08:36:49 -04:00
stack-probes-lto.rs Disable stack overflow handler tests on iOS-like platforms 2024-05-28 12:31:12 +02:00
stack-probes.rs Disable stack overflow handler tests on iOS-like platforms 2024-05-28 12:31:12 +02:00
stack-protector.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00: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 Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
unsupported.arm.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
unsupported.i686.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
unsupported.riscv32.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
unsupported.riscv64.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
unsupported.rs Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
unsupported.x64.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
variadic-ffi.rs Allow "C-unwind" fn to have C variadics 2024-06-22 15:14:14 -07: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