-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't build on Manjaro #61
Comments
Add
to the bottom of Details: rust-lang/rust#81654 |
I have same issue, after following suggestions above I've got into another issue:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS: Manjaro Linux x86_64
Kernel: 5.10.42-1-MANJARO
CPU: Intel Celeron J1800 (2) @ 2.415GHz
GPU: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display
RAM: 4G
Got the following error:
error[E0308]: mismatched types --> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/bigcomp.rs:243:55 | 243 | let nlz = den.leading_zeros().wrapping_sub(wlz) & (u32::BITS - 1); | ^^^^^^^^^^^^^^^ expected
usize, found
u32`error[E0277]: no implementation for
usize & u32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/bigcomp.rs:243:53
|
243 | let nlz = den.leading_zeros().wrapping_sub(wlz) & (u32::BITS - 1);
| ^ no implementation for
usize & u32
|
= help: the trait
BitAnd<u32>
is not implemented forusize
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/bigcomp.rs:261:40
|
261 | let (q, r) = shift.ceil_divmod(Limb::BITS);
| ^^^^^^^^^^ expected
usize
, foundu32
|
help: you can convert a
u32
to ausize
and panic if the converted value doesn't fit|
261 | let (q, r) = shift.ceil_divmod(Limb::BITS.try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/bigint.rs:85:24
|
85 | let bytes = bits / Limb::BITS;
| ^^^^^^^^^^ expected
usize
, foundu32
error[E0277]: cannot divide
usize
byu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/bigint.rs:85:22
|
85 | let bytes = bits / Limb::BITS;
| ^ no implementation for
usize / u32
|
= help: the trait
Div<u32>
is not implemented forusize
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1045:42
|
1045 | let mut count = index.saturating_mul(Limb::BITS);
| ^^^^^^^^^^ expected
usize
, foundu32
|
help: you can convert a
u32
to ausize
and panic if the converted value doesn't fit|
1045 | let mut count = index.saturating_mul(Limb::BITS.try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1060:28
|
1060 | Limb::BITS.checked_mul(x.len())
| ^^^^^^^ expected
u32
, foundusize
|
help: you can convert a
usize
to au32
and panic if the converted value doesn't fit|
1060 | Limb::BITS.checked_mul(x.len().try_into().unwrap())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1061:22
|
1061 | .map(|v| v - nlz)
| ^^^ expected
u32
, foundusize
error[E0277]: cannot subtract
usize
fromu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1061:20
|
1061 | .map(|v| v - nlz)
| ^ no implementation for
u32 - usize
|
= help: the trait
Sub<usize>
is not implemented foru32
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1062:20
|
1062 | .unwrap_or(usize::max_value())
| ^^^^^^^^^^^^^^^^^^ expected
u32
, foundusize
|
help: you can convert a
usize
to au32
and panic if the converted value doesn't fit|
1062 | .unwrap_or(usize::max_value().try_into().unwrap())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1060:5
|
1056 | pub fn bit_length(x: &[Limb]) -> usize {
| ----- expected
usize
because of return type...
1060 | / Limb::BITS.checked_mul(x.len())
1061 | | .map(|v| v - nlz)
1062 | | .unwrap_or(usize::max_value())
| |______________________________________^ expected
usize
, foundu32
|
help: you can convert a
u32
to ausize
and panic if the converted value doesn't fit|
1060 | Limb::BITS.checked_mul(x.len())
1061 | .map(|v| v - nlz)
1062 | .unwrap_or(usize::max_value()).try_into().unwrap()
|
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1087:23
|
1087 | debug_assert!(n < bits && n != 0);
| ^^^^ expected
usize
, foundu32
|
help: you can convert a
u32
to ausize
and panic if the converted value doesn't fit|
1087 | debug_assert!(n < bits.try_into().unwrap() && n != 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1094:25
|
1094 | let lshift = bits - n;
| ^ expected
u32
, foundusize
error[E0277]: cannot subtract
usize
fromu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1094:23
|
1094 | let lshift = bits - n;
| ^ no implementation for
u32 - usize
|
= help: the trait
Sub<usize>
is not implemented foru32
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1135:19
|
1135 | let rem = n % bits;
| ^^^^ expected
usize
, foundu32
error[E0277]: cannot mod
usize
byu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1135:17
|
1135 | let rem = n % bits;
| ^ no implementation for
usize % u32
|
= help: the trait
Rem<u32>
is not implemented forusize
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1136:19
|
1136 | let div = n / bits;
| ^^^^ expected
usize
, foundu32
error[E0277]: cannot divide
usize
byu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1136:17
|
1136 | let div = n / bits;
| ^ no implementation for
usize / u32
|
= help: the trait
Div<u32>
is not implemented forusize
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1192:23
|
1192 | debug_assert!(n < bits);
| ^^^^ expected
usize
, foundu32
|
help: you can convert a
u32
to ausize
and panic if the converted value doesn't fit|
1192 | debug_assert!(n < bits.try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1202:25
|
1202 | let rshift = bits - n;
| ^ expected
u32
, foundusize
error[E0277]: cannot subtract
usize
fromu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1202:23
|
1202 | let rshift = bits - n;
| ^ no implementation for
u32 - usize
|
= help: the trait
Sub<usize>
is not implemented foru32
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1254:19
|
1254 | let rem = n % bits;
| ^^^^ expected
usize
, foundu32
error[E0277]: cannot mod
usize
byu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1254:17
|
1254 | let rem = n % bits;
| ^ no implementation for
usize % u32
|
= help: the trait
Rem<u32>
is not implemented forusize
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1255:19
|
1255 | let div = n / bits;
| ^^^^ expected
usize
, foundu32
error[E0277]: cannot divide
usize
byu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:1255:17
|
1255 | let div = n / bits;
| ^ no implementation for
usize / u32
|
= help: the trait
Div<u32>
is not implemented forusize
error[E0308]: mismatched types
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:2066:27
|
2066 | let rs = Limb::BITS - s;
| ^ expected
u32
, foundusize
error[E0277]: cannot subtract
usize
fromu32
--> /home/julio/.asdf/installs/rust/stable/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.4.6/src/atof/algorithm/math.rs:2066:25
|
2066 | let rs = Limb::BITS - s;
| ^ no implementation for
u32 - usize
|
= help: the trait
Sub<usize>
is not implemented foru32
error: aborting due to 27 previous errors
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try
rustc --explain E0277
.error: could not compile
lexical-core
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed`
The text was updated successfully, but these errors were encountered: