diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-08-23 01:59:26 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-09-09 19:39:43 -0700 |
| commit | 24c505070c710dea13c02e965cf0b227e856ade1 (patch) | |
| tree | 9e9c62154169b8c70f88b8a7a444433e7db3a346 /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | d2309c2a9d308ddcd94c0ee8f4d2a01d1bd93560 (diff) | |
| download | rust-24c505070c710dea13c02e965cf0b227e856ade1.tar.gz rust-24c505070c710dea13c02e965cf0b227e856ade1.zip | |
Fix the examples in cg_clif
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/example/std_example.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/std_example.rs b/compiler/rustc_codegen_cranelift/example/std_example.rs index e99763e2722..f27d4ef57e0 100644 --- a/compiler/rustc_codegen_cranelift/example/std_example.rs +++ b/compiler/rustc_codegen_cranelift/example/std_example.rs @@ -166,7 +166,7 @@ fn main() { enum Never {} } - foo(I64X2(0, 0)); + foo(I64X2([0, 0])); transmute_fat_pointer(); @@ -204,7 +204,7 @@ fn rust_call_abi() { } #[repr(simd)] -struct I64X2(i64, i64); +struct I64X2([i64; 2]); #[allow(improper_ctypes_definitions)] extern "C" fn foo(_a: I64X2) {} |
