Skip to content
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

[5.0] Build fail in Windows 32bit. #971

Closed
NamsooCho opened this issue Jun 25, 2019 · 4 comments
Closed

[5.0] Build fail in Windows 32bit. #971

NamsooCho opened this issue Jun 25, 2019 · 4 comments

Comments

@NamsooCho
Copy link
Contributor

error[E0277]: the trait bound `usize: util::cast::TryCast<i64>` is not satisfied
  --> C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\lexical-core-0.4.1\src\util\num.rs:34:14
   |
34 |         impl Number for $t {}
   |              ^^^^^^ the trait `util::cast::TryCast<i64>` is not implemented for `usize`
...
38 | number_impl! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize f32 f64 }
   | ------------------------------------------------------------------ in this macro invocation
   |
   = help: the following implementations were found:
             <usize as util::cast::TryCast<f32>>
             <usize as util::cast::TryCast<f64>>
             <usize as util::cast::TryCast<i128>>
             <usize as util::cast::TryCast<i16>>
           and 6 others
error[E0277]: the trait bound `usize: util::cast::TryCast<usize>` is not satisfied
  --> C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\lexical-core-0.4.1\src\util\num.rs:34:14
   |
34 |         impl Number for $t {}
   |              ^^^^^^ the trait `util::cast::TryCast<usize>` is not implemented for `usize`
...
38 | number_impl! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize f32 f64 }
   | ------------------------------------------------------------------ in this macro invocation
   |
   = help: the following implementations were found:
             <usize as util::cast::TryCast<f32>>
             <usize as util::cast::TryCast<f64>>
             <usize as util::cast::TryCast<i128>>
             <usize as util::cast::TryCast<i16>>
           and 6 others
error[E0277]: the trait bound `usize: util::cast::TryCast<u64>` is not satisfied
  --> C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\lexical-core-0.4.1\src\util\num.rs:34:14
   |
34 |         impl Number for $t {}
   |              ^^^^^^ the trait `util::cast::TryCast<u64>` is not implemented for `usize`
...
38 | number_impl! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize f32 f64 }
   | ------------------------------------------------------------------ in this macro invocation
   |
   = help: the following implementations were found:
             <usize as util::cast::TryCast<f32>>
             <usize as util::cast::TryCast<f64>>
             <usize as util::cast::TryCast<i128>>
             <usize as util::cast::TryCast<i16>>
           and 6 others
error[E0277]: the trait bound `usize: util::cast::TryCast<u32>` is not satisfied
  --> C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\lexical-core-0.4.1\src\util\num.rs:34:14
   |
34 |         impl Number for $t {}
   |              ^^^^^^ the trait `util::cast::TryCast<u32>` is not implemented for `usize`
...
38 | number_impl! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize f32 f64 }
   | ------------------------------------------------------------------ in this macro invocation
   |
   = help: the following implementations were found:
             <usize as util::cast::TryCast<f32>>
             <usize as util::cast::TryCast<f64>>
             <usize as util::cast::TryCast<i128>>
@kpp
Copy link
Contributor

kpp commented Jun 25, 2019

@Geal
Copy link
Collaborator

Geal commented Jun 26, 2019

could you do a cargo update then try again? lexical-core 0.4.2 was released yesterday with a fix for 32 bit targets: https://github.com/Alexhuszagh/rust-lexical/blob/master/lexical-core/CHANGELOG#L16

@kpp
Copy link
Contributor

kpp commented Jun 26, 2019

It worked. Still the minimal version of lexical-core should be updated to 0.4.2

@Geal
Copy link
Collaborator

Geal commented Feb 24, 2020

#1101 is merged, raising the minimal lexical-core to 0.6

@Geal Geal closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants