Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4e0c7cb

Browse files
committed
tidy up
1 parent 1a427d7 commit 4e0c7cb

File tree

1 file changed

+4
-2
lines changed
  • tests/run-make/core-ffi-typecheck-clang

1 file changed

+4
-2
lines changed

tests/run-make/core-ffi-typecheck-clang/tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ cfg_if! {
100100
if #[cfg(all(target_arch = "aarch64", target_abi = "ilp32"))] {
101101
// FIXME: c_ptrdiff_t is not short enough on aarch64 ilp32, should be 4, defaulting to 8
102102
const XFAIL_C_PTRDIFF_T_SIZE: usize = 4;
103-
pub const TEST_C_PTRDIFF_T_SIZE: () = if size_of::<ffi::c_ptrdiff_t>() != XFAIL_C_PTRDIFF_T_SIZE {
103+
pub const TEST_C_PTRDIFF_T_SIZE: () =
104+
if size_of::<ffi::c_ptrdiff_t>() != XFAIL_C_PTRDIFF_T_SIZE {
104105
panic!("wrong c_ssize_t size, target_arch: aarch64, target_abi: ilp32");
105106
};
106107
}
107108
else {
108-
pub const TEST_C_PTRDIFF_T_SIZE: () = if size_of::<ffi::c_ptrdiff_t>() != CLANG_C_PTRDIFF_T_SIZE {
109+
pub const TEST_C_PTRDIFF_T_SIZE: () =
110+
if size_of::<ffi::c_ptrdiff_t>() != CLANG_C_PTRDIFF_T_SIZE {
109111
panic!("wrong c_size_t size");
110112
};
111113
}

0 commit comments

Comments
 (0)