[INFO] cloning repository https://github.com/hubefonseca/rsa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hubefonseca/rsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb7de9920a04210ca49caa968adcdcad0b8f3fce [INFO] testing hubefonseca/rsa 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%2Fhubefonseca%2Frsa" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hubefonseca/rsa 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/hubefonseca/rsa [INFO] finished tweaking git repo https://github.com/hubefonseca/rsa [INFO] tweaked toml for git repo https://github.com/hubefonseca/rsa written to /workspace/builds/worker-25/source/Cargo.toml [INFO] crate git repo https://github.com/hubefonseca/rsa 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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] 8694411f08cec42a5235d45dfcfd68c4265593544c8add15e16942f0d23b0fd0 [INFO] running `Command { std: "docker" "start" "-a" "8694411f08cec42a5235d45dfcfd68c4265593544c8add15e16942f0d23b0fd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8694411f08cec42a5235d45dfcfd68c4265593544c8add15e16942f0d23b0fd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8694411f08cec42a5235d45dfcfd68c4265593544c8add15e16942f0d23b0fd0", kill_on_drop: false }` [INFO] [stdout] 8694411f08cec42a5235d45dfcfd68c4265593544c8add15e16942f0d23b0fd0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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] 72882471ec6d66c29a7bc9a5df0644c24d2d82de0d3c88ed090dc2b340eef512 [INFO] running `Command { std: "docker" "start" "-a" "72882471ec6d66c29a7bc9a5df0644c24d2d82de0d3c88ed090dc2b340eef512", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-traits v0.2.2 [INFO] [stderr] Compiling libc v0.2.39 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling num-integer v0.1.36 [INFO] [stderr] Compiling num-iter v0.1.35 [INFO] [stderr] Compiling num-bigint v0.1.43 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling rsa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `gcd` [INFO] [stdout] --> src/lib.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use num::integer::{lcm,gcd}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `numbers::modinverse` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use numbers::modinverse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigInt` [INFO] [stdout] --> src/primes.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use num::bigint::{RandBigInt, ToBigInt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::bigint::ToBigInt` [INFO] [stdout] --> src/numbers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num::bigint::ToBigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::Integer` [INFO] [stdout] --> src/numbers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::Integer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CheckedSub` [INFO] [stdout] --> src/lib.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use num::{BigInt, CheckedSub}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/lib.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut p: BigInt = One::one(); [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: unused variable: `i` [INFO] [stdout] --> src/primes.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limit` [INFO] [stdout] --> src/primes.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | fn miller_rabin(candidate: &BigInt, limit: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference [INFO] [stdout] --> src/numbers.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | return (*b, zero, one); [INFO] [stdout] | ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference [INFO] [stdout] --> src/numbers.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | return (g, y - (*b / *a) * x, x); [INFO] [stdout] | -^^------ [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] | `*b` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> src/numbers.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | return (g, y - (*b / *a) * x, x); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*a` which is behind a shared reference [INFO] [stdout] --> src/numbers.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | return (g, y - (*b / *a) * x, x); [INFO] [stdout] | ^^ move occurs because `*a` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `x` [INFO] [stdout] --> src/numbers.rs:15:39 [INFO] [stdout] | [INFO] [stdout] 14 | let (g, x, y) = egcd(&(b % a), a); [INFO] [stdout] | - move occurs because `x` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] 15 | return (g, y - (*b / *a) * x, x); [INFO] [stdout] | - ^ value used here after move [INFO] [stdout] | | [INFO] [stdout] | value moved here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rsa` due to 5 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "72882471ec6d66c29a7bc9a5df0644c24d2d82de0d3c88ed090dc2b340eef512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72882471ec6d66c29a7bc9a5df0644c24d2d82de0d3c88ed090dc2b340eef512", kill_on_drop: false }` [INFO] [stdout] 72882471ec6d66c29a7bc9a5df0644c24d2d82de0d3c88ed090dc2b340eef512