[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] checking hubefonseca/rsa against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hubefonseca/rsa on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "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-5/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" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a2ae77c6be70f3d13c0868da3ffc9acd7d11115b8d5a2545724e96a2c92c1b7b [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" "a2ae77c6be70f3d13c0868da3ffc9acd7d11115b8d5a2545724e96a2c92c1b7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a2ae77c6be70f3d13c0868da3ffc9acd7d11115b8d5a2545724e96a2c92c1b7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2ae77c6be70f3d13c0868da3ffc9acd7d11115b8d5a2545724e96a2c92c1b7b", kill_on_drop: false }` [INFO] [stdout] a2ae77c6be70f3d13c0868da3ffc9acd7d11115b8d5a2545724e96a2c92c1b7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6924fde4318e64e096fc047bc3eda8d7e89667e87008f9f19cc85cf6d2a3ba7a [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" "6924fde4318e64e096fc047bc3eda8d7e89667e87008f9f19cc85cf6d2a3ba7a", kill_on_drop: false }` [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking num-bigint v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking 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: `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: `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] 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] | ^^ 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 `*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; 7 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] [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] [stderr] [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 `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [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] [stderr] warning: build failed, waiting for other jobs to finish... [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] [stderr] error: build failed [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] running `Command { std: "docker" "inspect" "6924fde4318e64e096fc047bc3eda8d7e89667e87008f9f19cc85cf6d2a3ba7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6924fde4318e64e096fc047bc3eda8d7e89667e87008f9f19cc85cf6d2a3ba7a", kill_on_drop: false }` [INFO] [stdout] 6924fde4318e64e096fc047bc3eda8d7e89667e87008f9f19cc85cf6d2a3ba7a