Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: use some tricks to format macro bodies #4107

Merged
merged 6 commits into from
Nov 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply formatting to macro bodies
Run `ci/style.sh` with the changes introduced in [1].

[1]: #4107
tgross35 committed Nov 19, 2024
commit 49cb0ff99f4cacf79baed72e49929455c901f3e1
21 changes: 19 additions & 2 deletions src/fixed_width_ints.rs
Original file line number Diff line number Diff line change
@@ -20,7 +20,16 @@ pub type uint32_t = u32;
pub type uint64_t = u64;

cfg_if! {
if #[cfg(all(target_arch = "aarch64", not(any(target_os = "windows", target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))))] {
if #[cfg(all(
target_arch = "aarch64",
not(any(
target_os = "windows",
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
))
))] {
// This introduces partial support for FFI with __int128 and
// equivalent types on platforms where Rust's definition is validated
// to match the standard C ABI of that platform.
@@ -93,7 +102,15 @@ cfg_if! {

// static_assert_eq!(core::mem::size_of::<__uint128_t>(), _SIZE_128);
// static_assert_eq!(core::mem::align_of::<__uint128_t>(), _ALIGN_128);
} else if #[cfg(all(target_arch = "aarch64", any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos")))] {
} else if #[cfg(all(
target_arch = "aarch64",
any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
)
))] {
/// C `__int128_t`
pub type __int128_t = i128;
/// C `__uint128_t`
Loading