[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] checking fremakvi/crypto_math against master#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffremakvi%2Fcrypto_math" "/workspace/builds/worker-83/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-83/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fremakvi/crypto_math on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "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-83/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" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a91f62b83240b2c3baf92f401eecec82dc81b1cc96f2b54276212f07ba24b1d8 [INFO] running `Command { std: "docker" "start" "-a" "a91f62b83240b2c3baf92f401eecec82dc81b1cc96f2b54276212f07ba24b1d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a91f62b83240b2c3baf92f401eecec82dc81b1cc96f2b54276212f07ba24b1d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a91f62b83240b2c3baf92f401eecec82dc81b1cc96f2b54276212f07ba24b1d8", kill_on_drop: false }` [INFO] [stdout] a91f62b83240b2c3baf92f401eecec82dc81b1cc96f2b54276212f07ba24b1d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/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=forbid" "-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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c12e3b563f3855cc7c579643486584e37d06d31e76d6435a15f5fc35445e5a4 [INFO] running `Command { std: "docker" "start" "-a" "4c12e3b563f3855cc7c579643486584e37d06d31e76d6435a15f5fc35445e5a4", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [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] Checking num-complex v0.4.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking 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] 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[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: 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] [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4c12e3b563f3855cc7c579643486584e37d06d31e76d6435a15f5fc35445e5a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c12e3b563f3855cc7c579643486584e37d06d31e76d6435a15f5fc35445e5a4", kill_on_drop: false }` [INFO] [stdout] 4c12e3b563f3855cc7c579643486584e37d06d31e76d6435a15f5fc35445e5a4