interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / evidence / native-bindings / mutant-rust.log

75 lines · 4045 bytes Raw Blame History
1error[E0308]: mismatched types
2 --> <repo>/build/native/mut/rust/caller.rs:17:52
3 |
417 | check("madd wraps = 3", omega_madd(&mut r, u64::MAX, 2, 5) == 0 && r == 3);
5 | ---------- ^^^^^^^^ expected `u32`, found `u64`
6 | |
7 | arguments to this function are incorrect
8 |
9note: function defined here
10 --> <repo>/build/native/mut/rust/omega_native.rs:20:12
11 |
1220 | pub fn omega_madd(result: *mut u64, o_a: u32, o_b: u32, o_c: u32) -> u32;
13 | ^^^^^^^^^^ ---
14help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
15 |
1617 | check("madd wraps = 3", omega_madd(&mut r, u64::MAX.try_into().unwrap(), 2, 5) == 0 && r == 3);
17 | ++++++++++++++++++++
18
19error[E0308]: mismatched types
20 --> <repo>/build/native/mut/rust/caller.rs:20:60
21 |
2220 | check("madd signed bits = -13", omega_madd(&mut r, (-3i64) as u64, 5, 2) == 0 && r as i64 == -13);
23 | ---------- ^^^^^^^^^^^^^^ expected `u32`, found `u64`
24 | |
25 | arguments to this function are incorrect
26 |
27note: function defined here
28 --> <repo>/build/native/mut/rust/omega_native.rs:20:12
29 |
3020 | pub fn omega_madd(result: *mut u64, o_a: u32, o_b: u32, o_c: u32) -> u32;
31 | ^^^^^^^^^^ ---
32help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
33 |
3420 | check("madd signed bits = -13", omega_madd(&mut r, ((-3i64) as u64).try_into().unwrap(), 5, 2) == 0 && r as i64 == -13);
35 | + +++++++++++++++++++++
36
37error[E0308]: mismatched types
38 --> <repo>/build/native/mut/rust/caller.rs:22:79
39 |
4022 | check("smadd overflow traps 1, result unchanged", omega_smadd(&mut r, 1u64 << 62, 4, 0) == 1 && r == SENTINEL);
41 | ----------- ^^^^^^^^^^ expected `u32`, found `u64`
42 | |
43 | arguments to this function are incorrect
44 |
45note: function defined here
46 --> <repo>/build/native/mut/rust/omega_native.rs:22:12
47 |
4822 | pub fn omega_smadd(result: *mut u64, o_a: u32, o_b: u32, o_c: u32) -> u32;
49 | ^^^^^^^^^^^ ---
50help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
51 |
5222 | check("smadd overflow traps 1, result unchanged", omega_smadd(&mut r, (1u64 << 62).try_into().unwrap(), 4, 0) == 1 && r == SENTINEL);
53 | + +++++++++++++++++++++
54
55error[E0308]: mismatched types
56 --> <repo>/build/native/mut/rust/caller.rs:39:34
57 |
5839 | omega_mix(&mut r, 5, (-1i64) as u64, cb.as_ptr(), 3, db.as_mut_ptr(), 2, eb.as_ptr(), 2, 7) == 9
59 | --------- ^^^^^^^^^^^^^^ expected `u32`, found `u64`
60 | |
61 | arguments to this function are incorrect
62 |
63note: function defined here
64 --> <repo>/build/native/mut/rust/omega_native.rs:28:12
65 |
6628 | pub fn omega_mix(result: *mut u64, o_a: u32, o_b: u32, o_c: *const u8, o_c_len: u64, o_d: *mut u8, o_d_len: u64, o_e: *const u64...
67 | ^^^^^^^^^ ---
68help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
69 |
7039 | omega_mix(&mut r, 5, ((-1i64) as u64).try_into().unwrap(), cb.as_ptr(), 3, db.as_mut_ptr(), 2, eb.as_ptr(), 2, 7) == 9
71 | + +++++++++++++++++++++
72
73error: aborting due to 4 previous errors
74
75For more information about this error, try `rustc --explain E0308`.