diff options
| author | bors <bors@rust-lang.org> | 2023-09-08 11:56:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-08 11:56:08 +0000 |
| commit | cd71a37f320c379df47ff64abd934f3a2da94c26 (patch) | |
| tree | e944304feffd1e5ce8b91a0fee807f315cb4ac73 /tests/codegen | |
| parent | 9be4eac2647432aa863f65da8a116f2eafd90ee9 (diff) | |
| parent | e726be21abcf688c62107330a2ae10e055d0303c (diff) | |
| download | rust-cd71a37f320c379df47ff64abd934f3a2da94c26.tar.gz rust-cd71a37f320c379df47ff64abd934f3a2da94c26.zip | |
Auto merge of #115372 - RalfJung:abi-assert-eq, r=davidtwco
add rustc_abi(assert_eq) to test some guaranteed or at least highly expected ABI compatibility guarantees This new repr(transparent) test is super useful, it would have found https://github.com/rust-lang/rust/issues/115336 and found https://github.com/rust-lang/rust/issues/115404, https://github.com/rust-lang/rust/issues/115481, https://github.com/rust-lang/rust/issues/115509.
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/repr/transparent.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/codegen/repr/transparent.rs b/tests/codegen/repr/transparent.rs index b140fc719da..c5974248bb3 100644 --- a/tests/codegen/repr/transparent.rs +++ b/tests/codegen/repr/transparent.rs @@ -43,7 +43,6 @@ pub extern "C" fn test_WithZst(_: WithZst) -> WithZst { loop {} } #[repr(transparent)] pub struct WithZeroSizedArray(*const f32, [i8; 0]); -// Apparently we use i32* when newtype-unwrapping f32 pointers. Whatever. // CHECK: define{{.*}}ptr @test_WithZeroSizedArray(ptr noundef %_1) #[no_mangle] pub extern "C" fn test_WithZeroSizedArray(_: WithZeroSizedArray) -> WithZeroSizedArray { loop {} } |
