omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / native-bindings / mutant-rust.log
| 1 | error[E0308]: mismatched types |
| 2 | --> <repo>/build/native/mut/rust/caller.rs:17:52 |
| 3 | | |
| 4 | 17 | 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 | | |
| 9 | note: function defined here |
| 10 | --> <repo>/build/native/mut/rust/omega_native.rs:20:12 |
| 11 | | |
| 12 | 20 | pub fn omega_madd(result: *mut u64, o_a: u32, o_b: u32, o_c: u32) -> u32; |
| 13 | | ^^^^^^^^^^ --- |
| 14 | help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit |
| 15 | | |
| 16 | 17 | check("madd wraps = 3", omega_madd(&mut r, u64::MAX.try_into().unwrap(), 2, 5) == 0 && r == 3); |
| 17 | | ++++++++++++++++++++ |
| 18 | |
| 19 | error[E0308]: mismatched types |
| 20 | --> <repo>/build/native/mut/rust/caller.rs:20:60 |
| 21 | | |
| 22 | 20 | 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 | | |
| 27 | note: function defined here |
| 28 | --> <repo>/build/native/mut/rust/omega_native.rs:20:12 |
| 29 | | |
| 30 | 20 | pub fn omega_madd(result: *mut u64, o_a: u32, o_b: u32, o_c: u32) -> u32; |
| 31 | | ^^^^^^^^^^ --- |
| 32 | help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit |
| 33 | | |
| 34 | 20 | check("madd signed bits = -13", omega_madd(&mut r, ((-3i64) as u64).try_into().unwrap(), 5, 2) == 0 && r as i64 == -13); |
| 35 | | + +++++++++++++++++++++ |
| 36 | |
| 37 | error[E0308]: mismatched types |
| 38 | --> <repo>/build/native/mut/rust/caller.rs:22:79 |
| 39 | | |
| 40 | 22 | 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 | | |
| 45 | note: function defined here |
| 46 | --> <repo>/build/native/mut/rust/omega_native.rs:22:12 |
| 47 | | |
| 48 | 22 | pub fn omega_smadd(result: *mut u64, o_a: u32, o_b: u32, o_c: u32) -> u32; |
| 49 | | ^^^^^^^^^^^ --- |
| 50 | help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit |
| 51 | | |
| 52 | 22 | check("smadd overflow traps 1, result unchanged", omega_smadd(&mut r, (1u64 << 62).try_into().unwrap(), 4, 0) == 1 && r == SENTINEL); |
| 53 | | + +++++++++++++++++++++ |
| 54 | |
| 55 | error[E0308]: mismatched types |
| 56 | --> <repo>/build/native/mut/rust/caller.rs:39:34 |
| 57 | | |
| 58 | 39 | 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 | | |
| 63 | note: function defined here |
| 64 | --> <repo>/build/native/mut/rust/omega_native.rs:28:12 |
| 65 | | |
| 66 | 28 | 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 | | ^^^^^^^^^ --- |
| 68 | help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit |
| 69 | | |
| 70 | 39 | 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 | |
| 73 | error: aborting due to 4 previous errors |
| 74 | |
| 75 | For more information about this error, try `rustc --explain E0308`. |