[INFO] cloning repository https://github.com/1925chicken/library-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/1925chicken/library-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1925chicken%2Flibrary-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1925chicken%2Flibrary-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0eb16edbe9e91983fa5e2125f8d538e8e9ef2e7b [INFO] testing 1925chicken/library-rs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1925chicken%2Flibrary-rs" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 39% (372/944) Updating files: 40% (378/944) Updating files: 41% (388/944) Updating files: 42% (397/944) Updating files: 43% (406/944) Updating files: 44% (416/944) Updating files: 44% (424/944) Updating files: 45% (425/944) Updating files: 46% (435/944) Updating files: 47% (444/944) Updating files: 48% (454/944) Updating files: 49% (463/944) Updating files: 50% (472/944) Updating files: 51% (482/944) Updating files: 52% (491/944) Updating files: 53% (501/944) Updating files: 54% (510/944) Updating files: 55% (520/944) Updating files: 56% (529/944) Updating files: 57% (539/944) Updating files: 58% (548/944) Updating files: 59% (557/944) Updating files: 60% (567/944) Updating files: 61% (576/944) Updating files: 62% (586/944) Updating files: 63% (595/944) Updating files: 64% (605/944) Updating files: 65% (614/944) Updating files: 66% (624/944) Updating files: 67% (633/944) Updating files: 68% (642/944) Updating files: 69% (652/944) Updating files: 70% (661/944) Updating files: 71% (671/944) Updating files: 72% (680/944) Updating files: 73% (690/944) Updating files: 74% (699/944) Updating files: 75% (708/944) Updating files: 76% (718/944) Updating files: 77% (727/944) Updating files: 78% (737/944) Updating files: 79% (746/944) Updating files: 80% (756/944) Updating files: 81% (765/944) Updating files: 82% (775/944) Updating files: 83% (784/944) Updating files: 84% (793/944) Updating files: 85% (803/944) Updating files: 86% (812/944) Updating files: 87% (822/944) Updating files: 88% (831/944) Updating files: 89% (841/944) Updating files: 90% (850/944) Updating files: 91% (860/944) Updating files: 92% (869/944) Updating files: 92% (870/944) Updating files: 93% (878/944) Updating files: 94% (888/944) Updating files: 95% (897/944) Updating files: 96% (907/944) Updating files: 97% (916/944) Updating files: 98% (926/944) Updating files: 99% (935/944) Updating files: 100% (944/944) Updating files: 100% (944/944), done. [INFO] validating manifest of git repo https://github.com/1925chicken/library-rs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-9/source/rust-toolchain [INFO] started tweaking git repo https://github.com/1925chicken/library-rs [INFO] finished tweaking git repo https://github.com/1925chicken/library-rs [INFO] tweaked toml for git repo https://github.com/1925chicken/library-rs written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/1925chicken/library-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proconio v0.3.6 [INFO] [stderr] Downloaded cli_test_dir v0.1.7 [INFO] [stderr] Downloaded proconio-derive v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0362af6505166e99ab95e36f260622d11e8e81cfc8d68a4bc31462b44fd74edc [INFO] running `Command { std: "docker" "start" "-a" "0362af6505166e99ab95e36f260622d11e8e81cfc8d68a4bc31462b44fd74edc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0362af6505166e99ab95e36f260622d11e8e81cfc8d68a4bc31462b44fd74edc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0362af6505166e99ab95e36f260622d11e8e81cfc8d68a4bc31462b44fd74edc", kill_on_drop: false }` [INFO] [stdout] 0362af6505166e99ab95e36f260622d11e8e81cfc8d68a4bc31462b44fd74edc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b84678de2e7430fdecfa1dd8f1057b4a0d05e704737db1eac998dafad72f31e5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b84678de2e7430fdecfa1dd8f1057b4a0d05e704737db1eac998dafad72f31e5", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling alga v0.9.3 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling proconio-derive v0.1.5 [INFO] [stderr] Compiling proconio v0.3.6 [INFO] [stderr] Compiling libarary v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `mod_sqrt` [INFO] [stdout] --> src/bin/mod_sqrt.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / fn mod_sqrt(a: i128, p: i128) -> i128 { [INFO] [stdout] 2 | | if quadratic_residue(a, p) == -1 { [INFO] [stdout] 3 | | println!("no answer"); [INFO] [stdout] 4 | | std::process::exit(0) [INFO] [stdout] ... | [INFO] [stdout] 76 | | ret [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/mod_sqrt.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/bin/mod_sqrt_bigint.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::*; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::ToPrimitive` [INFO] [stdout] --> src/bin/mod_sqrt_bigint.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::ToPrimitive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/bin/pollards_rho_bigint.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::*; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libarary` due to 2 previous errors [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/main.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | (\$(\$ty:tt,)*) => { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | (\$(\$ty:tt,)*) => { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/main.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | \$( [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/main.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn \$ty (&mut self) -> \$ty { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/main.rs:65:48 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn \$ty (&mut self) -> \$ty { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/main.rs:66:37 [INFO] [stdout] | [INFO] [stdout] 66 | self.read::<\$ty>() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/bin/pollards_rho_bigint.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | a = rand::thread_rng() [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/bin/pollards_rho_bigint.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | a = rand::thread_rng().gen_range(1, k).to_bigint().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INF` [INFO] [stdout] --> src/bin/miller_rabin.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | const INF: u64 = 1u64 << 60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/bin/miller_rabbin_bigint.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::*; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `g` is never read [INFO] [stdout] --> src/bin/pollards_rho.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut x, mut r, mut q, mut g, mut ys, mut m) = (1, 1, 1, 1, 1, 1); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ys` is never read [INFO] [stdout] --> src/bin/pollards_rho.rs:50:42 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut x, mut r, mut q, mut g, mut ys, mut m) = (1, 1, 1, 1, 1, 1); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cnt` is assigned to, but never used [INFO] [stdout] --> src/bin/pollards_rho.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let mut cnt = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cnt` is never read [INFO] [stdout] --> src/bin/pollards_rho.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | cnt = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/pollards_rho.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut x, mut r, mut q, mut g, mut ys, mut m) = (1, 1, 1, 1, 1, 1); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/pollards_rho.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut x, mut r, mut q, mut g, mut ys, mut m) = (1, 1, 1, 1, 1, 1); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/pollards_rho.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut x = y; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/pollards_rho.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut lim = std::cmp::min(m, r - k); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/bin/Jacobi_symbol.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::*; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::ToPrimitive` [INFO] [stdout] --> src/bin/Jacobi_symbol.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::ToPrimitive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `Jacobi_symbol` [INFO] [stdout] --> src/bin/Jacobi_symbol.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[allow(unused_imports)] [INFO] [stdout] 2 | | use num::integer::*; [INFO] [stdout] 3 | | use num::ToPrimitive; [INFO] [stdout] 4 | | use num_bigint::*; [INFO] [stdout] ... | [INFO] [stdout] 41 | | ans [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/Jacobi_symbol.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/pollards_rho_bigint.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | if n.clone() % 2 == Zero::zero() { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `num::BigInt: Rem<{integer}>` found in the `num_bigint` crate: [INFO] [stdout] - impl Rem for num::BigInt; [INFO] [stdout] - impl Rem for num::BigInt; [INFO] [stdout] - impl Rem for num::BigInt; [INFO] [stdout] - impl Rem for num::BigInt; [INFO] [stdout] and 8 more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/pollards_rho_bigint.rs:149:31 [INFO] [stdout] | [INFO] [stdout] 149 | return n.clone() == 2.to_bigint().unwrap(); [INFO] [stdout] | --^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | cannot infer type for type `{integer}` [INFO] [stdout] | this method call resolves to `Option` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: num_bigint::ToBigInt` found in the `num_bigint` crate: [INFO] [stdout] - impl num_bigint::ToBigInt for i128; [INFO] [stdout] - impl num_bigint::ToBigInt for i16; [INFO] [stdout] - impl num_bigint::ToBigInt for i32; [INFO] [stdout] - impl num_bigint::ToBigInt for i64; [INFO] [stdout] and 8 more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/pollards_rho.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | let mut n = read.i64(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/bin/miller_rabbin_bigint.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | a = rand::thread_rng() [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/bin/miller_rabbin_bigint.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | a = rand::thread_rng().gen_range(1, k).to_bigint().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `factrise_map` [INFO] [stdout] --> src/bin/pollards_rho.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn factrise_map(n: i128) -> std::collections::HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigUint`, `ToBigUint` [INFO] [stdout] --> src/bin/miller_rabbin_bigint.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use num_bigint::{BigInt, BigUint, ToBigInt, ToBigUint}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INF` [INFO] [stdout] --> src/bin/pollards_rho.rs:355:1 [INFO] [stdout] | [INFO] [stdout] 355 | const INF: i64 = 1i64 << 60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/miller_rabbin_bigint.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | if n.clone() % 2 == Zero::zero() { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `BigInt: Rem<{integer}>` found in the `num_bigint` crate: [INFO] [stdout] - impl Rem for BigInt; [INFO] [stdout] - impl Rem for BigInt; [INFO] [stdout] - impl Rem for BigInt; [INFO] [stdout] - impl Rem for BigInt; [INFO] [stdout] and 8 more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/miller_rabbin_bigint.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | return n.clone() == 2.to_bigint().unwrap(); [INFO] [stdout] | --^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | cannot infer type for type `{integer}` [INFO] [stdout] | this method call resolves to `Option` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: ToBigInt` found in the `num_bigint` crate: [INFO] [stdout] - impl ToBigInt for i128; [INFO] [stdout] - impl ToBigInt for i16; [INFO] [stdout] - impl ToBigInt for i32; [INFO] [stdout] - impl ToBigInt for i64; [INFO] [stdout] and 8 more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b84678de2e7430fdecfa1dd8f1057b4a0d05e704737db1eac998dafad72f31e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b84678de2e7430fdecfa1dd8f1057b4a0d05e704737db1eac998dafad72f31e5", kill_on_drop: false }` [INFO] [stdout] b84678de2e7430fdecfa1dd8f1057b4a0d05e704737db1eac998dafad72f31e5