rust/tests/ui/abi
bors 4354192429 Auto merge of #114201 - Centri3:explicit-repr-rust, r=WaffleLapkin
Allow explicit `#[repr(Rust)]`

This is identical to no `repr()` at all. For `Rust, packed` and `Rust, align(x)`, it should be the same as no `Rust` at all (as, afaik, `#[repr(align(16))]` uses the Rust ABI.)

The main use case for this is being able to explicitly say "I want to use the Rust ABI" in very very rare circumstances where the first obvious choice would be the C ABI yet is undesirable, which is already possible with functions as `extern "Rust"`. This would be useful for silencing https://github.com/rust-lang/rust-clippy/pull/11253. It's also more consistent with `extern`.

The lack of this also tripped me up a bit when I was new to Rust, as I expected this to be possible.
2023-08-25 00:02:54 +00:00
..
cross-crate Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern Move /src/test to /tests 2023-01-11 09:32:08 +00:00
foreign lint/ctypes: ext. abi fn-ptr in internal abi fn 2023-07-03 13:40:20 +01:00
issues Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
numbers-arithmetic Move /src/test to /tests 2023-01-11 09:32:08 +00:00
statics Move /src/test to /tests 2023-01-11 09:32:08 +00:00
struct-enums Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union Move /src/test to /tests 2023-01-11 09:32:08 +00:00
abi-sysv64-arg-passing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
abi-sysv64-register-usage.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
abi-typo-unstable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
abi-typo-unstable.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anon-extern-mod.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
c-stack-as-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
c-stack-returning-int64.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cabi-int-widening.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
explicit_repr_rust.rs Allow explicit #[repr(Rust)] 2023-07-29 06:58:29 +00:00
homogenous-floats-target-feature-mixup.rs Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
issue-28676.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-94223.rs abi: avoid ice for non-ffi-safe fn ptrs 2023-07-03 13:40:20 +01:00
lib-defaults.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nullable-pointer-ffi-compat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
relocation_model_pic.rs Add the relocation_model to the cfg 2023-08-18 19:57:28 +02:00
riscv-discoverability-guidance.riscv32.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
riscv-discoverability-guidance.riscv64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
riscv-discoverability-guidance.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
rustcall-generic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
segfault-no-out-of-stack.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
stack-probes-lto.rs Replace ignore-everything with only-arch 2023-07-29 15:49:07 -07:00
stack-probes.rs Replace ignore-everything with only-arch 2023-07-29 15:49:07 -07:00
stack-protector.rs Fix stack-protector.rs on LLVM 17 2023-08-07 20:35:55 +02:00
unsupported.aarch64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.arm.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.i686.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.riscv32.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.riscv64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.x64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
variadic-ffi.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
x86stdcall2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
x86stdcall.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00