[INFO] cloning repository https://github.com/Akari202/rsa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Akari202/rsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Frsa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Frsa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3277a169756ee3dd849ea0e5411caa0579cee51d [INFO] testing Akari202/rsa against try#8da20828b6ea601dfd8e2448cb50ace88876bd78 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Frsa" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Akari202/rsa [INFO] finished tweaking git repo https://github.com/Akari202/rsa [INFO] tweaked toml for git repo https://github.com/Akari202/rsa written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Akari202/rsa on toolchain 8da20828b6ea601dfd8e2448cb50ace88876bd78 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Akari202/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" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6cb4c749fb30e36f001415177eaea8609cff33022353d263c3c5ed985c280f5a [INFO] running `Command { std: "docker" "start" "-a" "6cb4c749fb30e36f001415177eaea8609cff33022353d263c3c5ed985c280f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cb4c749fb30e36f001415177eaea8609cff33022353d263c3c5ed985c280f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cb4c749fb30e36f001415177eaea8609cff33022353d263c3c5ed985c280f5a", kill_on_drop: false }` [INFO] [stdout] 6cb4c749fb30e36f001415177eaea8609cff33022353d263c3c5ed985c280f5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff5bc521c1eed31262791ad3ad9caaa9347910da9ea0bb576e10028aa9c26d6f [INFO] running `Command { std: "docker" "start" "-a" "ff5bc521c1eed31262791ad3ad9caaa9347910da9ea0bb576e10028aa9c26d6f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling clap_builder v4.5.29 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling env_logger v0.11.6 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling clap v4.5.29 [INFO] [stderr] Compiling clap-verbosity-flag v3.0.2 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling rsa v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::future::join` [INFO] [stdout] --> src/rsa.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::future::join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/rsa.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitAnd` [INFO] [stdout] --> src/rsa.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{BitAnd, Sub}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/rsa.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{debug, error, info, trace}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::builder::TypedValueParser` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use clap::builder::TypedValueParser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cli::Cli` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::cli::Cli; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/rsa.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead, Read, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/rsa.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeySet` is never constructed [INFO] [stdout] --> src/rsa.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct KeySet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rsa.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Key { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 31 | pub fn new(exponent: BigUint, modulus: BigUint, salt_bits: u32) -> Key { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn encrypt(&self, rng: &mut ThreadRng, input: u8) -> BigUint { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn decrypt(&self, input: &BigUint) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn save_to_file(&self, mut file: File) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn load_public_key(name: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn load_private_key(name: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn load_key(name: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save_keys`, and `get_key_root` are never used [INFO] [stdout] --> src/rsa.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 101 | impl KeySet { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 102 | pub fn new(salt_bits: u32, bit_length: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn save_keys(&self, name: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn get_key_root() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modular_pow` is never used [INFO] [stdout] --> src/math.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn modular_pow(base: &BigUint, exponent: &BigUint, modulus: &BigUint) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modular_inverse` is never used [INFO] [stdout] --> src/math.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn modular_inverse(e: &BigUint, phi: &BigUint) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_prime` is never used [INFO] [stdout] --> src/math.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn new_prime(bit_length: u64) -> BigUint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/math.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_prime(candidate: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide_small_primes` is never used [INFO] [stdout] --> src/math.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn divide_small_primes(number: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fermat` is never used [INFO] [stdout] --> src/math.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn fermat(rng: &mut ThreadRng, candidate: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `miller_rabin` is never used [INFO] [stdout] --> src/math.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn miller_rabin(rng: &mut ThreadRng, candidate: &BigUint, limit: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rewrite` is never used [INFO] [stdout] --> src/math.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn rewrite(n: &BigUint) -> (BigUint,BigUint) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SMALL_PRIMES` is never used [INFO] [stdout] --> src/math/constants.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub static SMALL_PRIMES: [u32; 2048] = [ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MILLER_RABIN_ROUNDS` is never used [INFO] [stdout] --> src/math/constants.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | pub const MILLER_RABIN_ROUNDS: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/cli.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Commands { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 64 | pub fn execute(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.55s [INFO] running `Command { std: "docker" "inspect" "ff5bc521c1eed31262791ad3ad9caaa9347910da9ea0bb576e10028aa9c26d6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff5bc521c1eed31262791ad3ad9caaa9347910da9ea0bb576e10028aa9c26d6f", kill_on_drop: false }` [INFO] [stdout] ff5bc521c1eed31262791ad3ad9caaa9347910da9ea0bb576e10028aa9c26d6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a5803e4db309ae1eefda2c8b4b8f183327a52fa2cc5b8ebe2c275fb23be8dcc [INFO] running `Command { std: "docker" "start" "-a" "3a5803e4db309ae1eefda2c8b4b8f183327a52fa2cc5b8ebe2c275fb23be8dcc", kill_on_drop: false }` [INFO] [stderr] Compiling rsa v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::future::join` [INFO] [stdout] --> src/rsa.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::future::join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/rsa.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitAnd` [INFO] [stdout] --> src/rsa.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{BitAnd, Sub}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/rsa.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{debug, error, info, trace}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::builder::TypedValueParser` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use clap::builder::TypedValueParser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cli::Cli` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::cli::Cli; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/rsa.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead, Read, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `phi`, `primes`, and `bit_length` are never read [INFO] [stdout] --> src/rsa.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct KeySet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | phi: BigUint, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | primes: (BigUint, BigUint), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | bit_length: u64 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeySet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/cli.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Commands { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 64 | pub fn execute(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "3a5803e4db309ae1eefda2c8b4b8f183327a52fa2cc5b8ebe2c275fb23be8dcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a5803e4db309ae1eefda2c8b4b8f183327a52fa2cc5b8ebe2c275fb23be8dcc", kill_on_drop: false }` [INFO] [stdout] 3a5803e4db309ae1eefda2c8b4b8f183327a52fa2cc5b8ebe2c275fb23be8dcc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3341b45f7408bea4797b71d782de5a4d2e045b68d9d48665c775157e0f55e31e [INFO] running `Command { std: "docker" "start" "-a" "3341b45f7408bea4797b71d782de5a4d2e045b68d9d48665c775157e0f55e31e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::future::join` [INFO] [stderr] --> src/rsa.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::future::join; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Read` [INFO] [stderr] --> src/rsa.rs:5:24 [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{BufRead, Read, Write}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BitAnd` [INFO] [stderr] --> src/rsa.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | use std::ops::{BitAnd, Sub}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `debug` [INFO] [stderr] --> src/rsa.rs:9:11 [INFO] [stderr] | [INFO] [stderr] 9 | use log::{debug, error, info, trace}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `clap::builder::TypedValueParser` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use clap::builder::TypedValueParser; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `clap::Parser` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use clap::Parser; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::cli::Cli` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use crate::cli::Cli; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BufRead` [INFO] [stderr] --> src/rsa.rs:5:15 [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{BufRead, Read, Write}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `phi`, `primes`, and `bit_length` are never read [INFO] [stderr] --> src/rsa.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct KeySet { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 25 | phi: BigUint, [INFO] [stderr] | ^^^ [INFO] [stderr] 26 | primes: (BigUint, BigUint), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 27 | bit_length: u64 [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `KeySet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `execute` is never used [INFO] [stderr] --> src/cli.rs:64:12 [INFO] [stderr] | [INFO] [stderr] 63 | impl Commands { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] 64 | pub fn execute(&self) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rsa` (bin "rsa" test) generated 10 warnings (run `cargo fix --bin "rsa" -p rsa --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rsa-aed5aee46f892ff7) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test tests::test_key_loading ... FAILED [INFO] [stderr] error: test failed, to rerun pass `--bin rsa` [INFO] [stdout] test tests::test_rsa ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::test_key_loading stdout ---- [INFO] [stdout] x0: 1, y0: 0, x1: 0, y1: 1 [INFO] [stdout] x0: 0, y0: 1, x1: 1, y1: 0 [INFO] [stdout] x0: 1, y0: 0, x1: -3018929317918294372109448382728906, y1: 1 [INFO] [stdout] x0: -3018929317918294372109448382728906, y0: 1, x1: 24151434543346354976875587061831249, y1: -8 [INFO] [stdout] x0: 24151434543346354976875587061831249, y0: -8, x1: -27170363861264649348985035444560155, y1: 9 [INFO] [stdout] x0: -27170363861264649348985035444560155, y0: 9, x1: 51321798404611004325860622506391404, y1: -17 [INFO] [stdout] x0: 51321798404611004325860622506391404, y0: -17, x1: -283779355884319670978288147976517175, y1: 94 [INFO] [stdout] x0: -283779355884319670978288147976517175, y0: 94, x1: 335101154288930675304148770482908579, y1: -111 [INFO] [stdout] x0: 335101154288930675304148770482908579, y0: -111, x1: -953981664462181021586585688942334333, y1: 316 [INFO] [stdout] x0: -953981664462181021586585688942334333, y0: 316, x1: 1289082818751111696890734459425242912, y1: -427 [INFO] [stdout] x0: 1289082818751111696890734459425242912, y0: -427, x1: -3532147301964404415368054607792820157, y1: 1170 [INFO] [stdout] x0: -3532147301964404415368054607792820157, y0: 1170, x1: 15417672026608729358362952890596523540, y1: -5107 [INFO] [stdout] x0: 15417672026608729358362952890596523540, y0: -5107, x1: -18949819328573133773731007498389343697, y1: 6277 [INFO] [stdout] x0: -18949819328573133773731007498389343697, y0: 6277, x1: 53317310683754996905824967887375210934, y1: -17661 [INFO] [stdout] x0: 53317310683754996905824967887375210934, y0: -17661, x1: -72267130012328130679555975385764554631, y1: 23938 [INFO] [stdout] [INFO] [stdout] thread 'tests::test_key_loading' (16) panicked at src/tests.rs:44:33: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 17, kind: AlreadyExists, message: "File exists" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5b29622d937a - std[da2fd379f16a7ff7]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5b29622d937a - std[da2fd379f16a7ff7]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5b29622d937a - std[da2fd379f16a7ff7]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5b29622d937a - <::print::DisplayBacktrace as core[97f61b5528a4c2b4]::fmt::Display>::fmt [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5b29622eda8a - ::fmt [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5b29622eda8a - core[97f61b5528a4c2b4]::fmt::write [INFO] [stdout] 6: 0x5b29622ddc62 - std[da2fd379f16a7ff7]::io::default_write_fmt::> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5b29622ddc62 - as std[da2fd379f16a7ff7]::io::Write>::write_fmt [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x5b29622b75bf - ::print [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5b29622b75bf - std[da2fd379f16a7ff7]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5b29622d1589 - std[da2fd379f16a7ff7]::panicking::default_hook [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x5b296221695c - core[97f61b5528a4c2b4]::ops::function::Fn<(&'a std[da2fd379f16a7ff7]::panic::PanicHookInfo<'b>,), Output = ()> + core[97f61b5528a4c2b4]::marker::Send + core[97f61b5528a4c2b4]::marker::Sync> as core[97f61b5528a4c2b4]::ops::function::Fn<(&std[da2fd379f16a7ff7]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x5b296221695c - test[d0b63a2f043bab5e]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5b29622d1742 - core[97f61b5528a4c2b4]::ops::function::Fn<(&'a std[da2fd379f16a7ff7]::panic::PanicHookInfo<'b>,), Output = ()> + core[97f61b5528a4c2b4]::marker::Send + core[97f61b5528a4c2b4]::marker::Sync> as core[97f61b5528a4c2b4]::ops::function::Fn<(&std[da2fd379f16a7ff7]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x5b29622d1742 - std[da2fd379f16a7ff7]::panicking::panic_with_hook [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x5b29622b7678 - std[da2fd379f16a7ff7]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x5b29622aede9 - std[da2fd379f16a7ff7]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x5b29622b838d - __rustc[9f3cd9eabd71303e]::rust_begin_unwind [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x5b29622ee36c - core[97f61b5528a4c2b4]::panicking::panic_fmt [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5b29622ee0b2 - core[97f61b5528a4c2b4]::result::unwrap_failed [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/result.rs:1867:5 [INFO] [stdout] 20: 0x5b2962204119 - >>::unwrap [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/result.rs:1233:23 [INFO] [stdout] 21: 0x5b2962204119 - rsa[a1d93541cb1b6417]::tests::test_key_loading [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:44:33 [INFO] [stdout] 22: 0x5b2962203a67 - rsa[a1d93541cb1b6417]::tests::test_key_loading::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:42:22 [INFO] [stdout] 23: 0x5b2962207706 - >::call_once [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5b296220aa3b - core[97f61b5528a4c2b4]::result::Result<(), alloc[ec929a98520ab192]::string::String> as core[97f61b5528a4c2b4]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5b296220aa3b - test[d0b63a2f043bab5e]::__rust_begin_short_backtrace::, fn() -> core[97f61b5528a4c2b4]::result::Result<(), alloc[ec929a98520ab192]::string::String>> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x5b296221742b - test[d0b63a2f043bab5e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x5b296221742b - as core[97f61b5528a4c2b4]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x5b296221742b - std[da2fd379f16a7ff7]::panicking::catch_unwind::do_call::, core[97f61b5528a4c2b4]::result::Result<(), alloc[ec929a98520ab192]::string::String>> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x5b296221742b - std[da2fd379f16a7ff7]::panicking::catch_unwind::, core[97f61b5528a4c2b4]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x5b296221742b - std[da2fd379f16a7ff7]::panic::catch_unwind::, core[97f61b5528a4c2b4]::result::Result<(), alloc[ec929a98520ab192]::string::String>> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5b296221742b - test[d0b63a2f043bab5e]::run_test_in_process [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x5b296221742b - test[d0b63a2f043bab5e]::run_test::{closure#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x5b2962212b44 - test[d0b63a2f043bab5e]::run_test::{closure#1} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x5b2962212b44 - std[da2fd379f16a7ff7]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x5b296221a032 - std[da2fd379f16a7ff7]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x5b296221a032 - ::{closure#1}::{closure#0}> as core[97f61b5528a4c2b4]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x5b296221a032 - std[da2fd379f16a7ff7]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x5b296221a032 - std[da2fd379f16a7ff7]::panicking::catch_unwind::<(), core[97f61b5528a4c2b4]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x5b296221a032 - std[da2fd379f16a7ff7]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5b296221a032 - std[da2fd379f16a7ff7]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x5b296221a032 - ::{closure#1} as core[97f61b5528a4c2b4]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5b29622d892f - + core[97f61b5528a4c2b4]::marker::Send> as core[97f61b5528a4c2b4]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 43: 0x5b29622d892f - ::new::thread_start [INFO] [stdout] at /rustc/8da20828b6ea601dfd8e2448cb50ace88876bd78/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 44: 0x781a48eb3aa4 - [INFO] [stdout] 45: 0x781a48f40a64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::test_key_loading [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.86s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3341b45f7408bea4797b71d782de5a4d2e045b68d9d48665c775157e0f55e31e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3341b45f7408bea4797b71d782de5a4d2e045b68d9d48665c775157e0f55e31e", kill_on_drop: false }` [INFO] [stdout] 3341b45f7408bea4797b71d782de5a4d2e045b68d9d48665c775157e0f55e31e