[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 try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffremakvi%2Fcrypto_math" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fremakvi/crypto_math on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "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-13/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" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e014eb5fcf2a69b7b3b71dbe8d64df4c97039076a81ba638508d0b1954b2eb9 [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" "6e014eb5fcf2a69b7b3b71dbe8d64df4c97039076a81ba638508d0b1954b2eb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e014eb5fcf2a69b7b3b71dbe8d64df4c97039076a81ba638508d0b1954b2eb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e014eb5fcf2a69b7b3b71dbe8d64df4c97039076a81ba638508d0b1954b2eb9", kill_on_drop: false }` [INFO] [stdout] 6e014eb5fcf2a69b7b3b71dbe8d64df4c97039076a81ba638508d0b1954b2eb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb35b62934bbc0fc238a5cc4e2ed8a2a37cb93bf14341bcd22762fd25cf684be [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" "cb35b62934bbc0fc238a5cc4e2ed8a2a37cb93bf14341bcd22762fd25cf684be", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.6.3 [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] 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-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] note: required by `gen_bigint_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/num-bigint-0.4.0/src/bigrand.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | fn gen_bigint_range(&mut self, lbound: &BigInt, ubound: &BigInt) -> BigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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" "cb35b62934bbc0fc238a5cc4e2ed8a2a37cb93bf14341bcd22762fd25cf684be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb35b62934bbc0fc238a5cc4e2ed8a2a37cb93bf14341bcd22762fd25cf684be", kill_on_drop: false }` [INFO] [stdout] cb35b62934bbc0fc238a5cc4e2ed8a2a37cb93bf14341bcd22762fd25cf684be