diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-04-29 07:48:13 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-04-29 08:37:31 +0000 |
| commit | 7a8d368ac9c858bf81f855e82886f92eb55fa55c (patch) | |
| tree | a44a876c164b66586b6d39dc8921acb697a0af91 | |
| parent | 17403cd406057139cd12bd7d19b81bbd75a6c41b (diff) | |
| download | rust-7a8d368ac9c858bf81f855e82886f92eb55fa55c.tar.gz rust-7a8d368ac9c858bf81f855e82886f92eb55fa55c.zip | |
Fix std_example.rs on s390x
| -rw-r--r-- | example/std_example.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index 2d9de2a5b8d..5d83066cffb 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -166,6 +166,7 @@ fn main() { enum Never {} } + #[cfg(not(target_arch = "s390x"))] // s390x doesn't have vector instructions enabled by default foo(I64X2([0, 0])); transmute_wide_pointer(); @@ -203,9 +204,11 @@ fn rust_call_abi() { rust_call_abi_callee((1, 2)); } +#[cfg_attr(target_arch = "s390x", allow(dead_code))] #[repr(simd)] struct I64X2([i64; 2]); +#[cfg_attr(target_arch = "s390x", allow(dead_code))] #[allow(improper_ctypes_definitions)] extern "C" fn foo(_a: I64X2) {} |
