[INFO] cloning repository https://github.com/fremakvi/crypto_math [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fremakvi/crypto_math" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffremakvi%2Fcrypto_math", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffremakvi%2Fcrypto_math'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca40b139c7a459863c8a5f7cce35525c918f3472 [INFO] testing fremakvi/crypto_math against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffremakvi%2Fcrypto_math" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fremakvi/crypto_math on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fremakvi/crypto_math [INFO] finished tweaking git repo https://github.com/fremakvi/crypto_math [INFO] tweaked toml for git repo https://github.com/fremakvi/crypto_math written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/fremakvi/crypto_math already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0505ecbcedf5f87140ea6b2d78377fe98e9d071183c5c96226c714f3d2357b15 [INFO] running `Command { std: "docker" "start" "-a" "0505ecbcedf5f87140ea6b2d78377fe98e9d071183c5c96226c714f3d2357b15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0505ecbcedf5f87140ea6b2d78377fe98e9d071183c5c96226c714f3d2357b15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0505ecbcedf5f87140ea6b2d78377fe98e9d071183c5c96226c714f3d2357b15", kill_on_drop: false }` [INFO] [stdout] 0505ecbcedf5f87140ea6b2d78377fe98e9d071183c5c96226c714f3d2357b15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edfa93095147d4df41e89682cac4e3cdcb1272bd497d184f075f43dd1b2965f3 [INFO] running `Command { std: "docker" "start" "-a" "edfa93095147d4df41e89682cac4e3cdcb1272bd497d184f075f43dd1b2965f3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-bigint v0.4.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling math_of_crypto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:109:32 [INFO] [stdout] | [INFO] [stdout] 109 | fn miller_rabin(p: &BigInt) -> (bool) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 109 - fn miller_rabin(p: &BigInt) -> (bool) { [INFO] [stdout] 109 + fn miller_rabin(p: &BigInt) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BigInt: rand_core::RngCore` is not satisfied [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | a = RandBigInt::gen_bigint_range(&mut a, &BigInt::one(), &(p - &BigInt::one())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand_core::RngCore` is not implemented for `BigInt` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `rand::rng::Rng` for `BigInt` [INFO] [stdout] = note: required because of the requirements on the impl of `RandBigInt` for `BigInt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/main.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | let two = 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[E0283]: type annotations needed [INFO] [stdout] --> src/main.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | if p < &3.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[E0283]: type annotations needed [INFO] [stdout] --> src/main.rs:122:23 [INFO] [stdout] | [INFO] [stdout] 122 | let mut a = 1.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 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `math_of_crypto` due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "edfa93095147d4df41e89682cac4e3cdcb1272bd497d184f075f43dd1b2965f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edfa93095147d4df41e89682cac4e3cdcb1272bd497d184f075f43dd1b2965f3", kill_on_drop: false }` [INFO] [stdout] edfa93095147d4df41e89682cac4e3cdcb1272bd497d184f075f43dd1b2965f3