@@ -59,28 +59,29 @@ cfg_if! {
5959 /// C __uint128_t (alternate name for [__uint128][])
6060 pub type __uint128_t = u128 ;
6161
62- macro_rules! static_assert_eq {
63- ( $a: expr, $b: expr) => {
64- const _: [ ( ) ; $a] = [ ( ) ; $b] ;
65- } ;
66- }
67-
6862 // NOTE: if you add more platforms to here, you may need to cfg
6963 // these consts. They should always match the platform's values
7064 // for `sizeof(__int128)` and `_Alignof(__int128)`.
7165 const _SIZE_128: usize = 16 ;
7266 const _ALIGN_128: usize = 16 ;
7367
74- // Since Rust doesn't officially guarantee that these types
75- // have compatible ABIs, we const assert that these values have the
76- // known size/align of the target platform's libc. If rustc ever
77- // tries to regress things, it will cause a compilation error.
68+ // FIXME(ctest): ctest doesn't handle `_` as an identifier so these tests are temporarily
69+ // disabled.
70+ // macro_rules! static_assert_eq {
71+ // ($a:expr, $b:expr) => {
72+ // const _: [(); $a] = [(); $b];
73+ // };
74+ // }
7875 //
79- // This isn't a bullet-proof solution because e.g. it doesn't
80- // catch the fact that llvm and gcc disagree on how x64 __int128
81- // is actually *passed* on the stack (clang underaligns it for
82- // the same reason that rustc *never* properly aligns it).
83- // FIXME: temporarily disabled because of a ctest2 bug.
76+ // // Since Rust doesn't officially guarantee that these types
77+ // // have compatible ABIs, we const assert that these values have the
78+ // // known size/align of the target platform's libc. If rustc ever
79+ // // tries to regress things, it will cause a compilation error.
80+ // //
81+ // // This isn't a bullet-proof solution because e.g. it doesn't
82+ // // catch the fact that llvm and gcc disagree on how x64 __int128
83+ // // is actually *passed* on the stack (clang underaligns it for
84+ // // the same reason that rustc *never* properly aligns it).
8485 // static_assert_eq!(core::mem::size_of::<__int128>(), _SIZE_128);
8586 // static_assert_eq!(core::mem::align_of::<__int128>(), _ALIGN_128);
8687
@@ -93,9 +94,9 @@ cfg_if! {
9394 // static_assert_eq!(core::mem::size_of::<__uint128_t>(), _SIZE_128);
9495 // static_assert_eq!(core::mem::align_of::<__uint128_t>(), _ALIGN_128);
9596 } else if #[ cfg( all( target_arch = "aarch64" , any( target_os = "macos" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ) ] {
96- /// /// C `__int128_t`
97+ /// C `__int128_t`
9798 pub type __int128_t = i128 ;
98- /// /// C `__uint128_t`
99+ /// C `__uint128_t`
99100 pub type __uint128_t = u128 ;
100101 }
101102}
0 commit comments