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

Build is not working #665

Closed
95th opened this issue Feb 14, 2020 · 4 comments
Closed

Build is not working #665

95th opened this issue Feb 14, 2020 · 4 comments
Labels

Comments

@95th
Copy link
Contributor

95th commented Feb 14, 2020

Getting error while building:

~/swc$ cargo check
    Checking num-bigint v0.2.6
   Compiling rustc_version v0.2.3
    Checking sourcemap v4.1.1
error[E0277]: the trait bound `u128: integer::Integer` is not satisfied
   --> /home/95th/.cargo/registry/src/github.com-1ecc6299db9ec823/num-bigint-0.2.6/src/bigint.rs:869:57
    |
850 | fn powsign<T: Integer>(sign: Sign, other: &T) -> Sign {
    |    -------    ------- required by this bound in `bigint::powsign`
...
869 |                 BigInt::from_biguint(powsign(self.sign, &rhs), (&self.data).pow(rhs))
    |                                                         ^^^^ the trait `integer::Integer` is not implemented for `u128`
...
890 | pow_impl!(u128);
    | ---------------- in this macro invocation

error[E0277]: the trait bound `u128: integer::Integer` is not satisfied
   --> /home/95th/.cargo/registry/src/github.com-1ecc6299db9ec823/num-bigint-0.2.6/src/bigint.rs:878:57
    |
850 | fn powsign<T: Integer>(sign: Sign, other: &T) -> Sign {
    |    -------    ------- required by this bound in `bigint::powsign`
...
878 |                 BigInt::from_biguint(powsign(self.sign, rhs), (&self.data).pow(rhs))
    |                                                         ^^^ the trait `integer::Integer` is not implemented for `u128`
...
890 | pow_impl!(u128);
    | ---------------- in this macro invocation

   Compiling parking_lot_core v0.4.0
error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.
error: could not compile `num-bigint`.
warning: build failed, waiting for other jobs to finish...
error: build failed

commit: 1fc09ca

@95th 95th added the C-bug label Feb 14, 2020
@kdy1
Copy link
Member

kdy1 commented Feb 14, 2020

Are you using latest nightly?

@95th
Copy link
Contributor Author

95th commented Feb 14, 2020

Not the very latest but:

~/swc$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/95th/.rustup

installed toolchains
--------------------

nightly-x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (overridden by '/home/95th/swc/rust-toolchain')
rustc 1.42.0-nightly (212b2c7da 2020-01-30)

@95th
Copy link
Contributor Author

95th commented Feb 14, 2020

I just updated to latest nightly and it builds now. Thanks

@95th 95th closed this as completed Feb 14, 2020
@swc-bot
Copy link
Collaborator

swc-bot commented Oct 28, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants