-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Description
x86_64-unknown-linux-gnux32
compiled fine with 0.4.4, but no longer does 0.4.5.
I don't actually use that target, but it happened to be in our CI, so i'm letting you know.
error[E0308]: arguments to this function are incorrect
--> src/biguint/addition.rs:52:17
|
52 | carry = adc(carry, *a, *b, a);
| ^^^ -- -- - expected `&mut u64`, found `&mut u32`
| | |
| | expected `u64`, found `u32`
| expected `u64`, found `u32`
|
= note: expected mutable reference `&mut u64`
found mutable reference `&mut u32`
note: function defined here
--> src/biguint/addition.rs:13:4
|
13 | fn adc(carry: u8, a: u64, b: u64, out: &mut u64) -> u8 {
| ^^^ --------- ------ ------ -------------
help: you can convert a `u32` to a `u64`
|
52 | carry = adc(carry, (*a).into(), *b, a);
| + ++++++++
help: you can convert a `u32` to a `u64`
|
52 | carry = adc(carry, *a, (*b).into(), a);
| + ++++++++
error[E0308]: arguments to this function are incorrect
--> src/biguint/addition.rs:57:21
|
57 | carry = adc(carry, *a, 0, a);
| ^^^ -- - expected `&mut u64`, found `&mut u32`
| |
| expected `u64`, found `u32`
|
= note: expected mutable reference `&mut u64`
found mutable reference `&mut u32`
note: function defined here
--> src/biguint/addition.rs:13:4
|
13 | fn adc(carry: u8, a: u64, b: u64, out: &mut u64) -> u8 {
| ^^^ --------- ------ ------ -------------
help: you can convert a `u32` to a `u64`
|
57 | carry = adc(carry, (*a).into(), 0, a);
| + ++++++++
warning: formatting may not be suitable for sub-register argument
--> src/biguint/division.rs:48:18
|
48 | "div {}",
| ^^
49 | in(reg) divisor,
| ------- for this argument
|
= help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values)
= help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values)
= note: `#[warn(asm_sub_register)]` on by default
error[E0308]: arguments to this function are incorrect
--> src/biguint/subtraction.rs:48:18
|
48 | borrow = sbb(borrow, *a, *b, a);
| ^^^ -- -- - expected `&mut u64`, found `&mut u32`
| | |
| | expected `u64`, found `u32`
| expected `u64`, found `u32`
|
= note: expected mutable reference `&mut u64`
found mutable reference `&mut u32`
note: function defined here
--> src/biguint/subtraction.rs:13:4
|
13 | fn sbb(borrow: u8, a: u64, b: u64, out: &mut u64) -> u8 {
| ^^^ ---------- ------ ------ -------------
help: you can convert a `u32` to a `u64`
|
48 | borrow = sbb(borrow, (*a).into(), *b, a);
| + ++++++++
help: you can convert a `u32` to a `u64`
|
48 | borrow = sbb(borrow, *a, (*b).into(), a);
| + ++++++++
error[E0308]: arguments to this function are incorrect
--> src/biguint/subtraction.rs:53:22
|
53 | borrow = sbb(borrow, *a, 0, a);
| ^^^ -- - expected `&mut u64`, found `&mut u32`
| |
| expected `u64`, found `u32`
|
= note: expected mutable reference `&mut u64`
found mutable reference `&mut u32`
note: function defined here
--> src/biguint/subtraction.rs:13:4
|
13 | fn sbb(borrow: u8, a: u64, b: u64, out: &mut u64) -> u8 {
| ^^^ ---------- ------ ------ -------------
help: you can convert a `u32` to a `u64`
|
53 | borrow = sbb(borrow, (*a).into(), 0, a);
| + ++++++++
error[E0308]: arguments to this function are incorrect
--> src/biguint/subtraction.rs:75:18
|
75 | borrow = sbb(borrow, *ai, *bi, bi);
| ^^^ --- --- -- expected `&mut u64`, found `&mut u32`
| | |
| | expected `u64`, found `u32`
| expected `u64`, found `u32`
|
= note: expected mutable reference `&mut u64`
found mutable reference `&mut u32`
note: function defined here
--> src/biguint/subtraction.rs:13:4
|
13 | fn sbb(borrow: u8, a: u64, b: u64, out: &mut u64) -> u8 {
| ^^^ ---------- ------ ------ -------------
help: you can convert a `u32` to a `u64`
|
75 | borrow = sbb(borrow, (*ai).into(), *bi, bi);
| + ++++++++
help: you can convert a `u32` to a `u64`
|
75 | borrow = sbb(borrow, *ai, (*bi).into(), bi);
| + ++++++++
For more information about this error, try `rustc --explain E0308`.
warning: `num-bigint` (lib) generated 1 warning
error: could not compile `num-bigint` (lib) due to 5 previous errors; 1 warning emitted
Metadata
Metadata
Assignees
Labels
No labels