[INFO] updating cached repository https://github.com/hubefonseca/rsa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb7de9920a04210ca49caa968adcdcad0b8f3fce [INFO] testing hubefonseca/rsa against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hubefonseca/rsa on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", 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-6/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" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3deb668da298cb6356d5aaef093f7de79f96632cc930ae23625ee5941931a77 [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" "a3deb668da298cb6356d5aaef093f7de79f96632cc930ae23625ee5941931a77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3deb668da298cb6356d5aaef093f7de79f96632cc930ae23625ee5941931a77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3deb668da298cb6356d5aaef093f7de79f96632cc930ae23625ee5941931a77", kill_on_drop: false }` [INFO] [stdout] a3deb668da298cb6356d5aaef093f7de79f96632cc930ae23625ee5941931a77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9bb49089af230e605eac2616e3512ce22d653cb5d55591b356d207336ea600ca [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" "9bb49089af230e605eac2616e3512ce22d653cb5d55591b356d207336ea600ca", kill_on_drop: false }` [INFO] [stderr] Compiling num-integer v0.1.36 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling num-bigint v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.35 [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:9 [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 `num::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] | ^^ move occurs because `*b` has type `num::BigInt`, which does not implement the `Copy` trait [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 `num::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 `num::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`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9bb49089af230e605eac2616e3512ce22d653cb5d55591b356d207336ea600ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bb49089af230e605eac2616e3512ce22d653cb5d55591b356d207336ea600ca", kill_on_drop: false }` [INFO] [stdout] 9bb49089af230e605eac2616e3512ce22d653cb5d55591b356d207336ea600ca