[INFO] fetching crate encrypto_rust 0.2.0... [INFO] testing encrypto_rust-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate encrypto_rust 0.2.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate encrypto_rust 0.2.0 [INFO] finished tweaking crates.io crate encrypto_rust 0.2.0 [INFO] tweaked toml for crates.io crate encrypto_rust 0.2.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate encrypto_rust 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad64e6a704678959178a3b0102d361bbcda0ef09ff1601da1da4411fb271ea46 [INFO] running `Command { std: "docker" "start" "-a" "ad64e6a704678959178a3b0102d361bbcda0ef09ff1601da1da4411fb271ea46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad64e6a704678959178a3b0102d361bbcda0ef09ff1601da1da4411fb271ea46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad64e6a704678959178a3b0102d361bbcda0ef09ff1601da1da4411fb271ea46", kill_on_drop: false }` [INFO] [stdout] ad64e6a704678959178a3b0102d361bbcda0ef09ff1601da1da4411fb271ea46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2be08fa42431b34c6bfed778ceb61e880709e6d9375685cce333c18c20cd0747 [INFO] running `Command { std: "docker" "start" "-a" "2be08fa42431b34c6bfed778ceb61e880709e6d9375685cce333c18c20cd0747", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling encrypto_rust v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/bigint.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | 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: struct `Verification` is never constructed [INFO] [stdout] --> src/bigint.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct Verification; [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 `Factorization` is never constructed [INFO] [stdout] --> src/bigint.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Factorization; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_composite`, `new_uint`, and `safe_prime` are never used [INFO] [stdout] --> src/bigint.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Generator { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn new_composite(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn new_uint(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn safe_prime(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_prime`, `is_composite`, `is_safe_prime`, and `is_very_smooth_number` are never used [INFO] [stdout] --> src/bigint.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl Verification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 185 | pub fn is_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn is_composite(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn is_safe_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | 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/bigint.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 226 | impl Factorization { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | 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/bigint.rs:449:4 [INFO] [stdout] | [INFO] [stdout] 449 | 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/bigint.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn is_safe_prime(number: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vsn` is never used [INFO] [stdout] --> src/bigint.rs:483:4 [INFO] [stdout] | [INFO] [stdout] 483 | fn vsn(m: &BigUint,n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.64s [INFO] running `Command { std: "docker" "inspect" "2be08fa42431b34c6bfed778ceb61e880709e6d9375685cce333c18c20cd0747", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2be08fa42431b34c6bfed778ceb61e880709e6d9375685cce333c18c20cd0747", kill_on_drop: false }` [INFO] [stdout] 2be08fa42431b34c6bfed778ceb61e880709e6d9375685cce333c18c20cd0747 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f09fdf72d48a2bf42484a946f46be67cba0954358e4d95bf0765485a947e7212 [INFO] running `Command { std: "docker" "start" "-a" "f09fdf72d48a2bf42484a946f46be67cba0954358e4d95bf0765485a947e7212", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/bigint.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | 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: struct `Verification` is never constructed [INFO] [stdout] --> src/bigint.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct Verification; [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 `Factorization` is never constructed [INFO] [stdout] --> src/bigint.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Factorization; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling encrypto_rust v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated functions `new_composite`, `new_uint`, and `safe_prime` are never used [INFO] [stdout] --> src/bigint.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Generator { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn new_composite(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn new_uint(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn safe_prime(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_prime`, `is_composite`, `is_safe_prime`, and `is_very_smooth_number` are never used [INFO] [stdout] --> src/bigint.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl Verification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 185 | pub fn is_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn is_composite(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn is_safe_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | 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/bigint.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 226 | impl Factorization { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | 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/bigint.rs:449:4 [INFO] [stdout] | [INFO] [stdout] 449 | 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/bigint.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn is_safe_prime(number: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vsn` is never used [INFO] [stdout] --> src/bigint.rs:483:4 [INFO] [stdout] | [INFO] [stdout] 483 | fn vsn(m: &BigUint,n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/bigint.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | 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: struct `Verification` is never constructed [INFO] [stdout] --> src/bigint.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct Verification; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_composite` is never used [INFO] [stdout] --> src/bigint.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Generator { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn new_composite(n: usize) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_prime`, `is_composite`, `is_safe_prime`, and `is_very_smooth_number` are never used [INFO] [stdout] --> src/bigint.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl Verification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 185 | pub fn is_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn is_composite(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn is_safe_prime(n: &BigUint) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | 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/bigint.rs:449:4 [INFO] [stdout] | [INFO] [stdout] 449 | 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/bigint.rs:483:4 [INFO] [stdout] | [INFO] [stdout] 483 | fn vsn(m: &BigUint,n: f64, c: u32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "f09fdf72d48a2bf42484a946f46be67cba0954358e4d95bf0765485a947e7212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f09fdf72d48a2bf42484a946f46be67cba0954358e4d95bf0765485a947e7212", kill_on_drop: false }` [INFO] [stdout] f09fdf72d48a2bf42484a946f46be67cba0954358e4d95bf0765485a947e7212 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4b11bda21400293d48d3d50678d07e8050b1dd0cf78994d15bdc944756af9811 [INFO] running `Command { std: "docker" "start" "-a" "4b11bda21400293d48d3d50678d07e8050b1dd0cf78994d15bdc944756af9811", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stderr] --> src/bigint.rs:265:21 [INFO] [stderr] | [INFO] [stderr] 265 | while n.divides(&BigUint::from(i)) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Verification` is never constructed [INFO] [stderr] --> src/bigint.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | pub struct Verification; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Factorization` is never constructed [INFO] [stderr] --> src/bigint.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub struct Factorization; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new_composite`, `new_uint`, and `safe_prime` are never used [INFO] [stderr] --> src/bigint.rs:92:12 [INFO] [stderr] | [INFO] [stderr] 78 | impl Generator { [INFO] [stderr] | -------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 92 | pub fn new_composite(n: usize) -> BigUint { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 118 | pub fn new_uint(n: usize) -> BigUint { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 167 | pub fn safe_prime(n: usize) -> BigUint { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `is_prime`, `is_composite`, `is_safe_prime`, and `is_very_smooth_number` are never used [INFO] [stderr] --> src/bigint.rs:185:12 [INFO] [stderr] | [INFO] [stderr] 184 | impl Verification { [INFO] [stderr] | ----------------- associated functions in this implementation [INFO] [stderr] 185 | pub fn is_prime(n: &BigUint) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 188 | pub fn is_composite(n: &BigUint) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | pub fn is_safe_prime(n: &BigUint) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 221 | pub fn is_very_smooth_number(m: &BigUint, n: f64, c: u32) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `prime_factor` is never used [INFO] [stderr] --> src/bigint.rs:247:12 [INFO] [stderr] | [INFO] [stderr] 226 | impl Factorization { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 247 | pub fn prime_factor(mut n: BigUint) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_safe_prime_add` is never used [INFO] [stderr] --> src/bigint.rs:449:4 [INFO] [stderr] | [INFO] [stderr] 449 | fn is_safe_prime_add(number: &BigUint) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_safe_prime` is never used [INFO] [stderr] --> src/bigint.rs:468:4 [INFO] [stderr] | [INFO] [stderr] 468 | fn is_safe_prime(number: &BigUint) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `vsn` is never used [INFO] [stderr] --> src/bigint.rs:483:4 [INFO] [stderr] | [INFO] [stderr] 483 | fn vsn(m: &BigUint,n: f64, c: u32) -> bool { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new_composite` is never used [INFO] [stderr] --> src/bigint.rs:92:12 [INFO] [stderr] | [INFO] [stderr] 78 | impl Generator { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 92 | pub fn new_composite(n: usize) -> BigUint { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `encrypto_rust` (lib) generated 9 warnings [INFO] [stderr] warning: `encrypto_rust` (lib test) generated 6 warnings (5 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/encrypto_rust-dd01839be46cb2ef) [INFO] [stdout] running 4 tests [INFO] [stdout] test bigint::prime_factor ... ok [INFO] [stdout] test bigint::generate ... ok [INFO] [stdout] test bigint::generate_safe_prime ... ok [INFO] [stdout] test tests::idk ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.97s [INFO] [stdout] [INFO] [stderr] Doc-tests encrypto_rust [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/bigint.rs - bigint::Generator::new_prime (line 126) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Generator::new_uint (line 107) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Verification::is_very_smooth_number (line 206) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Generator (line 26) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Factorization (line 61) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Generator::safe_prime (line 159) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Verification (line 44) ... FAILED [INFO] [stdout] test src/lib.rs - EncryptoRSA (line 27) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Factorization::prime_factor (line 232) ... FAILED [INFO] [stdout] test src/bigint.rs - bigint::Generator::new_composite (line 81) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/bigint.rs - bigint::Generator::new_prime (line 126) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::Generator; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Generator::new_uint (line 107) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::Generator; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Verification::is_very_smooth_number (line 206) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num_primes::Verification; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Generator (line 26) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::{Generator,Verification}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Factorization (line 61) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::{Generator,Factorization}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Generator::safe_prime (line 159) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::Generator; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Verification (line 44) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::{Generator,Verification}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - EncryptoRSA (line 27) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/lib.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 10 | let enc = e.encrypt_from_string(msg.clone(), public_key.clone()); // returns encrypted msg as base64 string [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bytes` in this scope [INFO] [stdout] --> src/lib.rs:40:58 [INFO] [stdout] | [INFO] [stdout] 15 | let enc_from_bytes = EncryptoRSA::encrypt_from_bytes(bytes, public_key); // returns encrypted bytes as base64 string [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 15 | let enc_from_bytes = EncryptoRSA::encrypt_from_bytes(bytes, public_key); // returns encrypted bytes as base64 string [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------- argument #2 of type `&[u8]` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn encrypt_from_bytes(&self, bytes: &[u8], pub_key: PublicKey) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 15 | let enc_from_bytes = EncryptoRSA::encrypt_from_bytes(bytes, /* &[u8] */, public_key); // returns encrypted bytes as base64 string [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Factorization::prime_factor (line 232) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::{Generator,Factorization}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bigint.rs - bigint::Generator::new_composite (line 81) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_primes` [INFO] [stdout] --> src/bigint.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_primes::Generator; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_primes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_primes`, use `cargo add num_primes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/bigint.rs - bigint::Factorization (line 61) [INFO] [stdout] src/bigint.rs - bigint::Factorization::prime_factor (line 232) [INFO] [stdout] src/bigint.rs - bigint::Generator (line 26) [INFO] [stdout] src/bigint.rs - bigint::Generator::new_composite (line 81) [INFO] [stdout] src/bigint.rs - bigint::Generator::new_prime (line 126) [INFO] [stdout] src/bigint.rs - bigint::Generator::new_uint (line 107) [INFO] [stdout] src/bigint.rs - bigint::Generator::safe_prime (line 159) [INFO] [stdout] src/bigint.rs - bigint::Verification (line 44) [INFO] [stdout] src/bigint.rs - bigint::Verification::is_very_smooth_number (line 206) [INFO] [stdout] src/lib.rs - EncryptoRSA (line 27) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "4b11bda21400293d48d3d50678d07e8050b1dd0cf78994d15bdc944756af9811", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b11bda21400293d48d3d50678d07e8050b1dd0cf78994d15bdc944756af9811", kill_on_drop: false }` [INFO] [stdout] 4b11bda21400293d48d3d50678d07e8050b1dd0cf78994d15bdc944756af9811