[INFO] cloning repository https://github.com/xyzzyz/toycrypto [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xyzzyz/toycrypto" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxyzzyz%2Ftoycrypto", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxyzzyz%2Ftoycrypto'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d76fc017b5613dfaf7514292c5b57dc48b96740f [INFO] testing xyzzyz/toycrypto against beta-2025-02-18 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxyzzyz%2Ftoycrypto" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xyzzyz/toycrypto on toolchain beta-2025-02-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xyzzyz/toycrypto [INFO] finished tweaking git repo https://github.com/xyzzyz/toycrypto [INFO] tweaked toml for git repo https://github.com/xyzzyz/toycrypto written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/xyzzyz/toycrypto 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" "+beta-2025-02-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e8c57c71bfbb0c29e3fdeddf751c995afa500982d39c8b238daf5d24fb1954c [INFO] running `Command { std: "docker" "start" "-a" "1e8c57c71bfbb0c29e3fdeddf751c995afa500982d39c8b238daf5d24fb1954c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e8c57c71bfbb0c29e3fdeddf751c995afa500982d39c8b238daf5d24fb1954c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e8c57c71bfbb0c29e3fdeddf751c995afa500982d39c8b238daf5d24fb1954c", kill_on_drop: false }` [INFO] [stdout] 1e8c57c71bfbb0c29e3fdeddf751c995afa500982d39c8b238daf5d24fb1954c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bfcc5359f3c18d654d3590009be8d1e2fa6925e44cccfbef1810a2bdad1d7c3 [INFO] running `Command { std: "docker" "start" "-a" "0bfcc5359f3c18d654d3590009be8d1e2fa6925e44cccfbef1810a2bdad1d7c3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [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 num-bigint v0.4.6 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling toycrypto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BigInt` and `BigUint` [INFO] [stdout] --> src/main.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use num_bigint::{BigInt, BigUint}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::Num` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::Num; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EllipticCurve` [INFO] [stdout] --> src/main.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::elliptic::{EllipticCryptosystem, EllipticCurve}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/elliptic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::CryptoRng` [INFO] [stdout] --> src/elliptic.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::CryptoRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic.rs:359:34 [INFO] [stdout] | [INFO] [stdout] 359 | let verification_point = ( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 360 | | &self.curve.multiply_point(&BigInt::from(u1), &self.generator) + [INFO] [stdout] | |____________^ [INFO] [stdout] 361 | &self.curve.multiply_point(&BigInt::from(u2), &public_key.public_point) [INFO] [stdout] | ____________________________________________________________________________________^ [INFO] [stdout] 362 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 359 ~ let verification_point = &self.curve.multiply_point(&BigInt::from(u1), &self.generator) + [INFO] [stdout] 360 ~ &self.curve.multiply_point(&BigInt::from(u2), &public_key.public_point); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/primes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #![no_std] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `primes::num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/primes.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | while n.divides(&BigUint::from(i)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/primes.rs:453:5 [INFO] [stdout] | [INFO] [stdout] 448 | return false [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 453 | return true [INFO] [stdout] | ^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/elliptic.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let b = &self.parameters.b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/elliptic.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let a = &self.parameters.a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/elliptic.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let b = &self.parameters.b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/elliptic.rs:329:40 [INFO] [stdout] | [INFO] [stdout] 329 | let CurvePoint { x: x1, y: y1, .. } = signature_point; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/primes.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | i = i + 2usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one_usize` [INFO] [stdout] --> src/primes.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | let one_usize = one.to_usize().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_one_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/primes.rs:514:13 [INFO] [stdout] | [INFO] [stdout] 514 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/primes.rs:522:9 [INFO] [stdout] | [INFO] [stdout] 522 | let x = &two; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/primes.rs:523:13 [INFO] [stdout] | [INFO] [stdout] 523 | let mut y = &zero; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/primes.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let mut i: usize = 0usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `counter` [INFO] [stdout] --> src/primes.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let mut counter: usize = 10usize; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/primes.rs:512:20 [INFO] [stdout] | [INFO] [stdout] 512 | fn pollard_rho(mut n: BigUint) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:512:16 [INFO] [stdout] | [INFO] [stdout] 512 | fn pollard_rho(mut n: BigUint) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:514:9 [INFO] [stdout] | [INFO] [stdout] 514 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | let mut y = &zero; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | let mut i: usize = 0usize; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | let mut counter: usize = 10usize; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_curve_point` is never used [INFO] [stdout] --> src/elliptic.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl WeierstrassCurve { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 173 | fn has_curve_point(&self, p: &CurvePoint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Generator` is never constructed [INFO] [stdout] --> src/primes.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Generator; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Factorization` is never constructed [INFO] [stdout] --> src/primes.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct Factorization; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_composite`, `new_uint`, `new_prime`, and `safe_prime` are never used [INFO] [stdout] --> src/primes.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Generator { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn new_composite(bit_size: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn new_uint(bit_size: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn new_prime(bit_size: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn safe_prime(bit_size: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_composite`, `is_safe_prime`, and `is_very_smooth_number` are never used [INFO] [stdout] --> src/primes.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl Verification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn is_composite(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn is_safe_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn is_very_smooth_number(m: &BigUint, n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `prime_factor` is never used [INFO] [stdout] --> src/primes.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl Factorization { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn prime_factor(mut n: BigUint) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_safe_prime_add` is never used [INFO] [stdout] --> src/primes.rs:458:4 [INFO] [stdout] | [INFO] [stdout] 458 | fn is_safe_prime_add(number: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_safe_prime` is never used [INFO] [stdout] --> src/primes.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn is_safe_prime(number: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vsn` is never used [INFO] [stdout] --> src/primes.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn vsn(m: &BigUint,n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pollard_rho` is never used [INFO] [stdout] --> src/primes.rs:512:4 [INFO] [stdout] | [INFO] [stdout] 512 | fn pollard_rho(mut n: BigUint) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.09s [INFO] running `Command { std: "docker" "inspect" "0bfcc5359f3c18d654d3590009be8d1e2fa6925e44cccfbef1810a2bdad1d7c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bfcc5359f3c18d654d3590009be8d1e2fa6925e44cccfbef1810a2bdad1d7c3", kill_on_drop: false }` [INFO] [stdout] 0bfcc5359f3c18d654d3590009be8d1e2fa6925e44cccfbef1810a2bdad1d7c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13f552a2cfdc12300bed7d1377bc9cd6e6cf4c8b02aa949aa0b21b0b2dce1012 [INFO] running `Command { std: "docker" "start" "-a" "13f552a2cfdc12300bed7d1377bc9cd6e6cf4c8b02aa949aa0b21b0b2dce1012", kill_on_drop: false }` [INFO] [stderr] Compiling toycrypto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BigInt` and `BigUint` [INFO] [stdout] --> src/main.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use num_bigint::{BigInt, BigUint}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::Num` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::Num; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EllipticCurve` [INFO] [stdout] --> src/main.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::elliptic::{EllipticCryptosystem, EllipticCurve}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/elliptic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::CryptoRng` [INFO] [stdout] --> src/elliptic.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::CryptoRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic.rs:359:34 [INFO] [stdout] | [INFO] [stdout] 359 | let verification_point = ( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 360 | | &self.curve.multiply_point(&BigInt::from(u1), &self.generator) + [INFO] [stdout] | |____________^ [INFO] [stdout] 361 | &self.curve.multiply_point(&BigInt::from(u2), &public_key.public_point) [INFO] [stdout] | ____________________________________________________________________________________^ [INFO] [stdout] 362 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 359 ~ let verification_point = &self.curve.multiply_point(&BigInt::from(u1), &self.generator) + [INFO] [stdout] 360 ~ &self.curve.multiply_point(&BigInt::from(u2), &public_key.public_point); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/primes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #![no_std] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `primes::num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/primes.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | while n.divides(&BigUint::from(i)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/primes.rs:453:5 [INFO] [stdout] | [INFO] [stdout] 448 | return false [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 453 | return true [INFO] [stdout] | ^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/elliptic.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let b = &self.parameters.b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/elliptic.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let a = &self.parameters.a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/elliptic.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let b = &self.parameters.b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/elliptic.rs:329:40 [INFO] [stdout] | [INFO] [stdout] 329 | let CurvePoint { x: x1, y: y1, .. } = signature_point; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/primes.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | i = i + 2usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one_usize` [INFO] [stdout] --> src/primes.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | let one_usize = one.to_usize().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_one_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/primes.rs:514:13 [INFO] [stdout] | [INFO] [stdout] 514 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/primes.rs:522:9 [INFO] [stdout] | [INFO] [stdout] 522 | let x = &two; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/primes.rs:523:13 [INFO] [stdout] | [INFO] [stdout] 523 | let mut y = &zero; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/primes.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let mut i: usize = 0usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `counter` [INFO] [stdout] --> src/primes.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let mut counter: usize = 10usize; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/primes.rs:512:20 [INFO] [stdout] | [INFO] [stdout] 512 | fn pollard_rho(mut n: BigUint) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:512:16 [INFO] [stdout] | [INFO] [stdout] 512 | fn pollard_rho(mut n: BigUint) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:514:9 [INFO] [stdout] | [INFO] [stdout] 514 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | let mut y = &zero; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | let mut i: usize = 0usize; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/primes.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | let mut counter: usize = 10usize; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_curve_point` is never used [INFO] [stdout] --> src/elliptic.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl WeierstrassCurve { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 173 | fn has_curve_point(&self, p: &CurvePoint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_composite` is never used [INFO] [stdout] --> src/primes.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Generator { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn new_composite(bit_size: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_composite`, `is_safe_prime`, and `is_very_smooth_number` are never used [INFO] [stdout] --> src/primes.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl Verification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn is_composite(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn is_safe_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn is_very_smooth_number(m: &BigUint, n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_safe_prime_add` is never used [INFO] [stdout] --> src/primes.rs:458:4 [INFO] [stdout] | [INFO] [stdout] 458 | fn is_safe_prime_add(number: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vsn` is never used [INFO] [stdout] --> src/primes.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn vsn(m: &BigUint,n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pollard_rho` is never used [INFO] [stdout] --> src/primes.rs:512:4 [INFO] [stdout] | [INFO] [stdout] 512 | fn pollard_rho(mut n: BigUint) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.93s [INFO] running `Command { std: "docker" "inspect" "13f552a2cfdc12300bed7d1377bc9cd6e6cf4c8b02aa949aa0b21b0b2dce1012", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13f552a2cfdc12300bed7d1377bc9cd6e6cf4c8b02aa949aa0b21b0b2dce1012", kill_on_drop: false }` [INFO] [stdout] 13f552a2cfdc12300bed7d1377bc9cd6e6cf4c8b02aa949aa0b21b0b2dce1012 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9c86f817e3d6d7cd84b840735423b43f25a961714696785f60169ed1d2b94f7f [INFO] running `Command { std: "docker" "start" "-a" "9c86f817e3d6d7cd84b840735423b43f25a961714696785f60169ed1d2b94f7f", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: write /var/lib/docker/containers/9c86f817e3d6d7cd84b840735423b43f25a961714696785f60169ed1d2b94f7f/.tmp-resolv.conf.hash2512594838: no space left on device [INFO] running `Command { std: "docker" "inspect" "9c86f817e3d6d7cd84b840735423b43f25a961714696785f60169ed1d2b94f7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c86f817e3d6d7cd84b840735423b43f25a961714696785f60169ed1d2b94f7f", kill_on_drop: false }` [INFO] [stdout] 9c86f817e3d6d7cd84b840735423b43f25a961714696785f60169ed1d2b94f7f