[INFO] cloning repository https://github.com/reu24/RSA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/reu24/RSA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freu24%2FRSA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freu24%2FRSA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2cceecffc05f84c23f5c4c2bde79b810dce622e3 [INFO] checking reu24/RSA against try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freu24%2FRSA" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/reu24/RSA [INFO] finished tweaking git repo https://github.com/reu24/RSA [INFO] tweaked toml for git repo https://github.com/reu24/RSA written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/reu24/RSA on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/reu24/RSA already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f66f383a773d3dddb38af62172187831284bfffd29688e4c2aead9b43f5e5e4c [INFO] running `Command { std: "docker" "start" "-a" "f66f383a773d3dddb38af62172187831284bfffd29688e4c2aead9b43f5e5e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f66f383a773d3dddb38af62172187831284bfffd29688e4c2aead9b43f5e5e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f66f383a773d3dddb38af62172187831284bfffd29688e4c2aead9b43f5e5e4c", kill_on_drop: false }` [INFO] [stdout] f66f383a773d3dddb38af62172187831284bfffd29688e4c2aead9b43f5e5e4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4b0d04c0c83f1b840ebcdc68a6d1e3871a21ef6eab74ba1e7226d6d6084cec0 [INFO] running `Command { std: "docker" "start" "-a" "d4b0d04c0c83f1b840ebcdc68a6d1e3871a21ef6eab74ba1e7226d6d6084cec0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking RSA v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | if (command == "keygen") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - if (command == "keygen") { [INFO] [stdout] 17 + if command == "keygen" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | else if (command == "encode") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - else if (command == "encode") { [INFO] [stdout] 20 + else if command == "encode" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | else if (command == "decode") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - else if (command == "decode") { [INFO] [stdout] 23 + else if command == "decode" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | if (n < 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (n < 2) { [INFO] [stdout] 43 + if n < 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if (n % x == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - if (n % x == 0) { [INFO] [stdout] 48 + if n % x == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | while (number < MIN_PRIME || !is_prime(number as i32)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - while (number < MIN_PRIME || !is_prime(number as i32)) { [INFO] [stdout] 63 + while number < MIN_PRIME || !is_prime(number as i32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | if (first_number > second_number) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - if (first_number > second_number) { [INFO] [stdout] 72 + if first_number > second_number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | if (b == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if (b == 0) { [INFO] [stdout] 81 + if b == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | while (result > MIN_LENGTH || !is_coprime(result, number)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - while (result > MIN_LENGTH || !is_coprime(result, number)) { [INFO] [stdout] 94 + while result > MIN_LENGTH || !is_coprime(result, number) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | if (((a % m) as i64 * ((x % m) as i64)) % m as i64 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - if (((a % m) as i64 * ((x % m) as i64)) % m as i64 == 1) { [INFO] [stdout] 102 + if ((a % m) as i64 * ((x % m) as i64)) % m as i64 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | if (!first) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if (!first) { [INFO] [stdout] 140 + if !first { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | if (command == "keygen") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - if (command == "keygen") { [INFO] [stdout] 17 + if command == "keygen" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:154:16 [INFO] [stdout] | [INFO] [stdout] 154 | if (!number.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - if (!number.is_empty()) { [INFO] [stdout] 154 + if !number.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | else if (command == "encode") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - else if (command == "encode") { [INFO] [stdout] 20 + else if command == "encode" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | else if (command == "decode") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - else if (command == "decode") { [INFO] [stdout] 23 + else if command == "decode" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | if (n < 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (n < 2) { [INFO] [stdout] 43 + if n < 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if (n % x == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - if (n % x == 0) { [INFO] [stdout] 48 + if n % x == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | while (number < MIN_PRIME || !is_prime(number as i32)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - while (number < MIN_PRIME || !is_prime(number as i32)) { [INFO] [stdout] 63 + while number < MIN_PRIME || !is_prime(number as i32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | if (first_number > second_number) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - if (first_number > second_number) { [INFO] [stdout] 72 + if first_number > second_number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | if (b == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if (b == 0) { [INFO] [stdout] 81 + if b == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | while (result > MIN_LENGTH || !is_coprime(result, number)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - while (result > MIN_LENGTH || !is_coprime(result, number)) { [INFO] [stdout] 94 + while result > MIN_LENGTH || !is_coprime(result, number) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | if (((a % m) as i64 * ((x % m) as i64)) % m as i64 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - if (((a % m) as i64 * ((x % m) as i64)) % m as i64 == 1) { [INFO] [stdout] 102 + if ((a % m) as i64 * ((x % m) as i64)) % m as i64 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | if (!first) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if (!first) { [INFO] [stdout] 140 + if !first { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:154:16 [INFO] [stdout] | [INFO] [stdout] 154 | if (!number.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - if (!number.is_empty()) { [INFO] [stdout] 154 + if !number.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "d4b0d04c0c83f1b840ebcdc68a6d1e3871a21ef6eab74ba1e7226d6d6084cec0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4b0d04c0c83f1b840ebcdc68a6d1e3871a21ef6eab74ba1e7226d6d6084cec0", kill_on_drop: false }` [INFO] [stdout] d4b0d04c0c83f1b840ebcdc68a6d1e3871a21ef6eab74ba1e7226d6d6084cec0