[INFO] cloning repository https://github.com/strahinjapraska/rsa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/strahinjapraska/rsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrahinjapraska%2Frsa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrahinjapraska%2Frsa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e18c6f17cf2b878b3e9f2260b6e8251ffda9228 [INFO] checking strahinjapraska/rsa against try#b28cc4eb48a6415b914e8ad0308be255ff8d73ed for pr-156508-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrahinjapraska%2Frsa" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/strahinjapraska/rsa [INFO] finished tweaking git repo https://github.com/strahinjapraska/rsa [INFO] tweaked toml for git repo https://github.com/strahinjapraska/rsa written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/strahinjapraska/rsa on toolchain b28cc4eb48a6415b914e8ad0308be255ff8d73ed [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/strahinjapraska/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" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dab6dc9304c34c160ae235324e75da76d4c4a21c6727482fe2284b7c9c57c30e [INFO] running `Command { std: "docker" "start" "-a" "dab6dc9304c34c160ae235324e75da76d4c4a21c6727482fe2284b7c9c57c30e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dab6dc9304c34c160ae235324e75da76d4c4a21c6727482fe2284b7c9c57c30e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dab6dc9304c34c160ae235324e75da76d4c4a21c6727482fe2284b7c9c57c30e", kill_on_drop: false }` [INFO] [stdout] dab6dc9304c34c160ae235324e75da76d4c4a21c6727482fe2284b7c9c57c30e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9886087cf3c6b2bd4b757c509cca94986352483ab4fef3e6a52e1860b2e7efa4 [INFO] running `Command { std: "docker" "start" "-a" "9886087cf3c6b2bd4b757c509cca94986352483ab4fef3e6a52e1860b2e7efa4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Checking crypto-bigint v0.6.1 [INFO] [stderr] Checking crypto-primes v0.6.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rsa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/rsa.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crypto_bigint::{Odd, U3072, Zero, modular::{MontyForm, MontyParams}}; [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: `core::panic` [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/rsa.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crypto_bigint::{Odd, U3072, Zero, modular::{MontyForm, MontyParams}}; [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 variable: `em` [INFO] [stdout] --> src/rsa_pss.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let em = emsa_pss_encode(m); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_em` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `em` [INFO] [stdout] --> src/rsa_pss.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let em = emsa_pss_encode(m); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_em` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RSAPrivateKey` is never constructed [INFO] [stdout] --> src/rsa.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RSAPrivateKey { [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 `RSAPublicKey` is never constructed [INFO] [stdout] --> src/rsa.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RSAPublicKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keygen` is never used [INFO] [stdout] --> src/rsa.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) fn keygen() -> (RSAPublicKey, RSAPrivateKey) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enc` is never used [INFO] [stdout] --> src/rsa.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn enc(pk: &RSAPublicKey, m: &U3072) -> Result{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dec` is never used [INFO] [stdout] --> src/rsa.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn dec(sk: &RSAPrivateKey, c: &U3072) -> Result{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/rsa.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn sign(sk: &RSAPrivateKey, m: &U3072) -> Result{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/rsa.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn verify(pk: &RSAPublicKey, s: &U3072) -> Result{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_mod` is never used [INFO] [stdout] --> src/rsa.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn pow_mod(base: &U3072, exponent: &U3072, modulus: &U3072) -> U3072{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keygen` is never used [INFO] [stdout] --> src/rsa_pss.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn keygen() -> (rsa::RSAPublicKey, rsa::RSAPrivateKey) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/rsa_pss.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn sign(sk: &RSAPrivateKey, m: &[u8]) -> Result<[u8; 384], String>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/rsa_pss.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn verify(pk: &rsa::RSAPublicKey, m: &[u8], s: &[u8]) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emsa_pss_encode` is never used [INFO] [stdout] --> src/rsa_pss.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn emsa_pss_encode(m: &[u8]) -> Result<[u8; EM_LEN], String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emsa_pss_verify` is never used [INFO] [stdout] --> src/rsa_pss.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn emsa_pss_verify(m: &[u8], em: &[u8]) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keygen` is never used [INFO] [stdout] --> src/rsa_oaep.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn keygen() -> (rsa::RSAPublicKey, rsa::RSAPrivateKey) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enc` is never used [INFO] [stdout] --> src/rsa_oaep.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn enc(pk: &rsa::RSAPublicKey, m: &[u8], l: &[u8]) -> Result<[u8; 384], String>{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dec` is never used [INFO] [stdout] --> src/rsa_oaep.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn dec(sk: &rsa::RSAPrivateKey, c: &[u8], l: &[u8]) -> Result, String>{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eme_oaep_encode` is never used [INFO] [stdout] --> src/rsa_oaep.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn eme_oaep_encode(m: &[u8], l: &[u8]) -> [u8; K]{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eme_oaep_decode` is never used [INFO] [stdout] --> src/rsa_oaep.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn eme_oaep_decode(em: &[u8], l: &[u8]) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_db_valid` is never used [INFO] [stdout] --> src/rsa_oaep.rs:134:15 [INFO] [stdout] | [INFO] [stdout] 134 | pub(crate) fn is_db_valid(db: &[u8], l_hash : &[u8], y: u8) -> (Choice, usize){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SALT_LEN` is never used [INFO] [stdout] --> src/common.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const SALT_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `H_LEN` is never used [INFO] [stdout] --> src/common.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const H_LEN: usize = 32; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EM_LEN` is never used [INFO] [stdout] --> src/common.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const EM_LEN: usize = 384; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `K` is never used [INFO] [stdout] --> src/common.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const K: usize = 384; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mgf1` is never used [INFO] [stdout] --> src/common.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub (crate) fn mgf1(seed: &[u8], mask_len: usize)-> Vec{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.63s [INFO] running `Command { std: "docker" "inspect" "9886087cf3c6b2bd4b757c509cca94986352483ab4fef3e6a52e1860b2e7efa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9886087cf3c6b2bd4b757c509cca94986352483ab4fef3e6a52e1860b2e7efa4", kill_on_drop: false }` [INFO] [stdout] 9886087cf3c6b2bd4b757c509cca94986352483ab4fef3e6a52e1860b2e7efa4