diff options
| author | Max “Goldstein” Siling <root@goldstein.rs> | 2024-05-05 13:13:55 +0300 |
|---|---|---|
| committer | Goldstein <root@goldstein.rs> | 2024-06-28 20:19:56 +0300 |
| commit | 8a3c07afbe94ff892b9fef982dea3ba1af7c7a5a (patch) | |
| tree | ec3ce679d097d85f5cbde75588ac31e29fc37dcd | |
| parent | 71dfbeabc4abe992a42025a5b7341e1ceec22e0b (diff) | |
| download | rust-8a3c07afbe94ff892b9fef982dea3ba1af7c7a5a.tar.gz rust-8a3c07afbe94ff892b9fef982dea3ba1af7c7a5a.zip | |
Clarify guarantees about ABI compatibility
Co-authored-by: Ralf Jung <post@ralfj.de>
| -rw-r--r-- | tests/ui/abi/compatibility.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/abi/compatibility.rs b/tests/ui/abi/compatibility.rs index 086177efb77..1bff3baaf7d 100644 --- a/tests/ui/abi/compatibility.rs +++ b/tests/ui/abi/compatibility.rs @@ -278,6 +278,7 @@ test_abi_compatible!(zst_array, Zst, [u8; 0]); test_abi_compatible!(nonzero_int, NonZero<i32>, i32); // `#[repr(C)]` enums should not change ABI based on individual variant inhabitedness. +// (However, this is *not* a guarantee. We only guarantee same layout, not same ABI.) enum Void {} test_abi_compatible!(repr_c_enum_void, ReprCEnum<Void>, ReprCEnum<ReprCUnion<Void>>); |
