[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#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Frsa" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Akari202/rsa on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c15f28b79baa5d7302c5cd8b1a8a011154667332d99e2e31b87ff20191a9faab [INFO] running `Command { std: "docker" "start" "-a" "c15f28b79baa5d7302c5cd8b1a8a011154667332d99e2e31b87ff20191a9faab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c15f28b79baa5d7302c5cd8b1a8a011154667332d99e2e31b87ff20191a9faab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c15f28b79baa5d7302c5cd8b1a8a011154667332d99e2e31b87ff20191a9faab", kill_on_drop: false }` [INFO] [stdout] c15f28b79baa5d7302c5cd8b1a8a011154667332d99e2e31b87ff20191a9faab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8933d31e57e8507bb26134e4c54653e03fbb56870b6ad123bcb3c5c0de07a81 [INFO] running `Command { std: "docker" "start" "-a" "c8933d31e57e8507bb26134e4c54653e03fbb56870b6ad123bcb3c5c0de07a81", 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 autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling clap_builder v4.5.29 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.6 [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 clap v4.5.29 [INFO] [stderr] Compiling clap-verbosity-flag v3.0.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [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)]` 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)]` 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 44.38s [INFO] running `Command { std: "docker" "inspect" "c8933d31e57e8507bb26134e4c54653e03fbb56870b6ad123bcb3c5c0de07a81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8933d31e57e8507bb26134e4c54653e03fbb56870b6ad123bcb3c5c0de07a81", kill_on_drop: false }` [INFO] [stdout] c8933d31e57e8507bb26134e4c54653e03fbb56870b6ad123bcb3c5c0de07a81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0beeabfecb9e67949012fdeaa098fece45f452431a98be4a0c6090495fe78cc3 [INFO] running `Command { std: "docker" "start" "-a" "0beeabfecb9e67949012fdeaa098fece45f452431a98be4a0c6090495fe78cc3", 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)]` 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)]` 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 1.05s [INFO] running `Command { std: "docker" "inspect" "0beeabfecb9e67949012fdeaa098fece45f452431a98be4a0c6090495fe78cc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0beeabfecb9e67949012fdeaa098fece45f452431a98be4a0c6090495fe78cc3", kill_on_drop: false }` [INFO] [stdout] 0beeabfecb9e67949012fdeaa098fece45f452431a98be4a0c6090495fe78cc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 637cfc133f1089174a253b9d8a576c2f6658e33dc8ecb387ee56bc263a8a3d2e [INFO] running `Command { std: "docker" "start" "-a" "637cfc133f1089174a253b9d8a576c2f6658e33dc8ecb387ee56bc263a8a3d2e", 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)]` 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)]` 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" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rsa-39e318a351e3503f) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test tests::test_key_loading ... ok [INFO] [stdout] test tests::test_rsa ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.71s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "637cfc133f1089174a253b9d8a576c2f6658e33dc8ecb387ee56bc263a8a3d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "637cfc133f1089174a253b9d8a576c2f6658e33dc8ecb387ee56bc263a8a3d2e", kill_on_drop: false }` [INFO] [stdout] 637cfc133f1089174a253b9d8a576c2f6658e33dc8ecb387ee56bc263a8a3d2e