You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint/convert.rs:585:19
|
585 | .div_ceil(&u64::from(bits))
| -------- ^^^^^^^^^^^^^^^^ expected u64, found &u64
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
585 - .div_ceil(&u64::from(bits))
585 + .div_ceil(u64::from(bits))
|
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint/convert.rs:613:19
|
613 | .div_ceil(&u64::from(bits))
| -------- ^^^^^^^^^^^^^^^^ expected u64, found &u64
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
613 - .div_ceil(&u64::from(bits))
613 + .div_ceil(u64::from(bits))
|
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint.rs:398:54
|
398 | let root_scale = extra_bits.div_ceil(&n64);
| -------- ^^^^ expected u64, found &u64
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
398 - let root_scale = extra_bits.div_ceil(&n64);
398 + let root_scale = extra_bits.div_ceil(n64);
|
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...
The text was updated successfully, but these errors were encountered:
did a clone of the repository. following the book.
tried to build and got this (the error happens far before we reach Mandelbrot's code)
gf@aesir:~/Documents/004-books/001-rust/ProgRustSources/mandelbrot$ cargo build --release
Updating crates.io index
Downloaded autocfg v1.0.1
Downloaded enum_primitive v0.1.1
Downloaded scoped_threadpool v0.1.9
Downloaded nodrop v0.1.13
Downloaded crossbeam-queue v0.1.2
Downloaded num-integer v0.1.44
Downloaded num v0.4.0
Downloaded num-iter v0.1.42
Downloaded crossbeam-deque v0.7.1
Downloaded arrayvec v0.4.11
Downloaded memoffset v0.5.1
Downloaded adler32 v1.0.3
Downloaded color_quant v1.0.1
Downloaded num-traits v0.1.43
Downloaded cfg-if v0.1.9
Downloaded num-rational v0.4.0
Downloaded num-traits v0.2.14
Downloaded either v1.5.2
Downloaded byteorder v1.3.2
Downloaded gif v0.9.2
Downloaded lzw v0.10.0
Downloaded num_cpus v1.10.1
Downloaded inflate v0.2.0
Downloaded scopeguard v1.0.0
Downloaded num-rational v0.1.42
Downloaded bitflags v0.7.0
Downloaded jpeg-decoder v0.1.16
Downloaded crossbeam-utils v0.6.6
Downloaded num-bigint v0.4.0
Downloaded png v0.7.0
Downloaded num-complex v0.4.0
Downloaded deflate v0.7.20
Downloaded crossbeam-epoch v0.7.2
Downloaded rayon-core v1.6.0
Downloaded image v0.13.0
Downloaded rayon v1.2.0
Downloaded libc v0.2.62
Downloaded 37 crates (1.5 MB) in 6.46s
Compiling autocfg v1.0.1
Compiling semver-parser v0.7.0
Compiling lazy_static v1.4.0
Compiling cfg-if v0.1.9
Compiling arrayvec v0.4.11
Compiling nodrop v0.1.13
Compiling libc v0.2.62
Compiling byteorder v1.3.2
Compiling scopeguard v1.0.0
Compiling rayon-core v1.6.0
Compiling either v1.5.2
Compiling adler32 v1.0.3
Compiling lzw v0.10.0
Compiling bitflags v0.7.0
Compiling inflate v0.2.0
Compiling color_quant v1.0.1
Compiling scoped_threadpool v0.1.9
Compiling crossbeam-utils v0.6.6
Compiling semver v0.9.0
Compiling gif v0.9.2
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling rustc_version v0.2.3
Compiling num-iter v0.1.42
Compiling num-bigint v0.4.0
Compiling num-rational v0.4.0
Compiling crossbeam-queue v0.1.2
Compiling memoffset v0.5.1
Compiling deflate v0.7.20
Compiling num_cpus v1.10.1
Compiling crossbeam-epoch v0.7.2
Compiling crossbeam-deque v0.7.1
Compiling num-traits v0.1.43
Compiling num-complex v0.4.0
Compiling enum_primitive v0.1.1
Compiling rayon v1.2.0
Compiling num-rational v0.1.42
Compiling png v0.7.0
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint/convert.rs:70:19
|
70 | .div_ceil(&big_digit::BITS.into())
| -------- ^^^^^^^^^^^^^^^^^^^^^^^ expected
u64
, found&_
| |
| arguments to this method are incorrect
|
= note: expected type
u64
found reference
&_
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
70 - .div_ceil(&big_digit::BITS.into())
70 + .div_ceil(big_digit::BITS.into())
|
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint/convert.rs:585:19
|
585 | .div_ceil(&u64::from(bits))
| -------- ^^^^^^^^^^^^^^^^ expected
u64
, found&u64
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
585 - .div_ceil(&u64::from(bits))
585 + .div_ceil(u64::from(bits))
|
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint/convert.rs:613:19
|
613 | .div_ceil(&u64::from(bits))
| -------- ^^^^^^^^^^^^^^^^ expected
u64
, found&u64
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
613 - .div_ceil(&u64::from(bits))
613 + .div_ceil(u64::from(bits))
|
error[E0308]: mismatched types
--> /home/gf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.0/src/biguint.rs:398:54
|
398 | let root_scale = extra_bits.div_ceil(&n64);
| -------- ^^^^ expected
u64
, found&u64
| |
| arguments to this method are incorrect
|
note: method defined here
--> /home/gf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1169:5
|
1169 | / uint_impl! {
1170 | | Self = u64,
1171 | | ActualT = u64,
1172 | | SignedT = i64,
... |
1186 | | bound_condition = "",
1187 | | }
| |_____^
= 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
|
398 - let root_scale = extra_bits.div_ceil(&n64);
398 + let root_scale = extra_bits.div_ceil(n64);
|
For more information about this error, try
rustc --explain E0308
.error: could not compile
num-bigint
(lib) due to 4 previous errorswarning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered: