-------- ^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found &_
arguments to this method are incorrect
= note: expected type `u64`
found reference `&_`
note: method defined here
--> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/num/mod.rs:1170:5
= note: this error originates in the macro uint_impl (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the borrow
note: method defined here
--> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/num/mod.rs:1170:5
= note: this error originates in the macro uint_impl (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the borrow
1700 - let root_scale = extra_bits.div_ceil(&n64);
1700 + let root_scale = extra_bits.div_ceil(n64);
-------- ^^^^^^^^^^^^^^^^ expected u64, found &u64
arguments to this method are incorrect
note: method defined here
--> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/num/mod.rs:1170:5
= note: this error originates in the macro uint_impl (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the borrow
-------- ^^^^^^^^^^^^^^^^ expected u64, found &u64
arguments to this method are incorrect
note: method defined here
--> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/num/mod.rs:1170:5
= note: this error originates in the macro uint_impl (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the borrow
Compiling aho-corasick v0.7.13
Compiling vec_map v0.8.2
For more information about this error, try rustc --explain E0308.
error: could not compile num-bigint (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
My OS: MacOS / Apple Silicon M1.
➜ cargo build xisfits
error: unexpected argument 'xisfits' found
Usage: cargo build [OPTIONS]
For more information, try '--help'. ➜ cargo --version
cargo 1.80.1 (376290515 2024-07-16)
I have followed the installation instructions for xisfits and cargo (rust). In the case of Rust you have installed correctly...
On the other hand, when I execute using: xisfits cd cargo build
It gives me the following:
Compiling autocfg v1.0.1 Compiling libc v0.2.76 Compiling version_check v0.9.2 Compiling proc-macro2 v1.0.19 Compiling unicode-xid v0.2.1 Compiling cfg-if v0.1.10 Compiling getrandom v0.1.14 Compiling memchr v2.3.3 Compiling syn v1.0.38 Compiling log v0.4.11 Compiling proc-macro-error-attr v1.0.4 Compiling num-traits v0.2.12 Compiling num-integer v0.1.43 Compiling num-bigint v0.3.0 Compiling proc-macro-error v1.0.4 Compiling num-iter v0.1.41 Compiling quote v1.0.7 Compiling num-rational v0.3.0 Compiling bitflags v1.2.1 Compiling lazy_static v1.4.0 Compiling rand_core v0.5.1 Compiling atty v0.2.14 Compiling byteorder v1.3.4 Compiling unicode-width v0.1.8 Compiling ppv-lite86 v0.2.9 Compiling unicode-segmentation v1.6.0 Compiling heck v0.3.1 Compiling rand_chacha v0.2.2 Compiling textwrap v0.11.0 Compiling num-complex v0.3.0 Compiling thread_local v1.0.1 error[E0308]: mismatched types --> /Users/juan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.3.0/src/biguint.rs:198:19
u64
, found&_
uint_impl
(in Nightly builds, run with -Z macro-backtrace for more info) help: consider removing the borrowu64
, found&u64
uint_impl
(in Nightly builds, run with -Z macro-backtrace for more info) help: consider removing the borrowu64
, found&u64
uint_impl
(in Nightly builds, run with -Z macro-backtrace for more info) help: consider removing the borrowu64
, found&u64
uint_impl
(in Nightly builds, run with -Z macro-backtrace for more info) help: consider removing the borrowCompiling aho-corasick v0.7.13 Compiling vec_map v0.8.2 For more information about this error, try
rustc --explain E0308
. error: could not compilenum-bigint
(lib) due to 4 previous errors warning: build failed, waiting for other jobs to finish...