[INFO] fetching crate quantum-shield 0.1.0...
[INFO] testing quantum-shield-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7
[INFO] extracting crate quantum-shield 0.1.0 into /workspace/builds/worker-4-tc2/source
[INFO] started tweaking crates.io crate quantum-shield 0.1.0
[INFO] removed 0 missing examples
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate quantum-shield 0.1.0
[INFO] tweaked toml for crates.io crate quantum-shield 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate quantum-shield 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate quantum-shield 0.1.0 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3249a30b039c0f206fda51fa33c66d812232c019334e4df60e73566f3b6d2160
[INFO] running `Command { std: "docker" "start" "-a" "3249a30b039c0f206fda51fa33c66d812232c019334e4df60e73566f3b6d2160", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3249a30b039c0f206fda51fa33c66d812232c019334e4df60e73566f3b6d2160", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3249a30b039c0f206fda51fa33c66d812232c019334e4df60e73566f3b6d2160", kill_on_drop: false }`
[INFO] [stdout] 3249a30b039c0f206fda51fa33c66d812232c019334e4df60e73566f3b6d2160
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5db039ac1df54797c403311ade0ce401bb0237af7995449cdfc1834d9c79ee34
[INFO] running `Command { std: "docker" "start" "-a" "5db039ac1df54797c403311ade0ce401bb0237af7995449cdfc1834d9c79ee34", kill_on_drop: false }`
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]    Compiling base64ct v1.8.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling opaque-debug v0.3.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling pem-rfc7468 v0.7.0
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling num-bigint-dig v0.8.4
[INFO] [stderr]    Compiling polyval v0.6.2
[INFO] [stderr]    Compiling cc v1.2.41
[INFO] [stderr]    Compiling pqcrypto-traits v0.3.5
[INFO] [stderr]    Compiling ghash v0.5.1
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling keccak v0.1.5
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling sha3 v0.10.8
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling pqcrypto-internals v0.2.11
[INFO] [stderr]    Compiling pqcrypto-dilithium v0.5.0
[INFO] [stderr]    Compiling pqcrypto-kyber v0.5.0
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling pkcs1 v0.7.5
[INFO] [stderr]    Compiling rsa v0.9.8
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling quantum-shield v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `EntropyMonitor`, `SecureMemory`, `TimingProtection`, and `constant_time_compare`
[INFO] [stdout]  --> src/crypto.rs:7:40
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::security::{SecurityManager, EntropyMonitor, TimingProtection, SecureMemory, constant_time_compare};
[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 imports: `ZeroizeOnDrop` and `Zeroize`
[INFO] [stdout]   --> src/crypto.rs:21:15
[INFO] [stdout]    |
[INFO] [stdout] 21 | use zeroize::{Zeroize, ZeroizeOnDrop};
[INFO] [stdout]    |               ^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]   --> src/security.rs:10:13
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::{Error, Result};
[INFO] [stdout]    |             ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Instant`
[INFO] [stdout]   --> src/security.rs:13:27
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::time::{Duration, Instant};
[INFO] [stdout]    |                           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:131:37
[INFO] [stdout]     |
[INFO] [stdout] 131 |         let key = Key::<Aes256Gcm>::from_slice(&symmetric_key);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:134:28
[INFO] [stdout]     |
[INFO] [stdout] 134 |         let nonce = Nonce::from_slice(&nonce_bytes);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:162:43
[INFO] [stdout]     |
[INFO] [stdout] 162 |         let kyber_key = Key::<Aes256Gcm>::from_slice(&shared_secret_bytes[..32.min(shared_secret_bytes.len())]);
[INFO] [stdout]     |                                           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:165:34
[INFO] [stdout]     |
[INFO] [stdout] 165 |         let kyber_nonce = Nonce::from_slice(&kyber_nonce_bytes);
[INFO] [stdout]     |                                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:212:28
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let nonce = Nonce::from_slice(&encrypted_data[..12]);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let key = Key::<Aes256Gcm>::from_slice(&symmetric_key);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:257:37
[INFO] [stdout]     |
[INFO] [stdout] 257 |         let key = Key::<Aes256Gcm>::from_slice(&shared_secret_bytes[..32.min(shared_secret_bytes.len())]);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:259:28
[INFO] [stdout]     |
[INFO] [stdout] 259 |         let nonce = Nonce::from_slice(nonce_bytes);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `is_cleared` is never read
[INFO] [stdout]    --> src/security.rs:192:5
[INFO] [stdout]     |
[INFO] [stdout] 192 |     is_cleared: AtomicBool,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `private_keys` is never used
[INFO] [stdout]   --> src/keys.rs:86:19
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl KeyPair {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub(crate) fn private_keys(&self) -> &PrivateKeys {
[INFO] [stdout]    |                   ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:4:1
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub const RSA_KEY_SIZE: usize = 4096;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> src/lib.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | #![warn(missing_docs, rust_2018_idioms)]
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub const KYBER_KEY_SIZE: usize = 1024;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub const DILITHIUM_KEY_SIZE: usize = 5;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:9:1
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub const NIST_LEVEL_5: u8 = 5;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const KYBER1024_CIPHERTEXT_BYTES: usize = 1568;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:13:1
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const NONCE_BYTES: usize = 12;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub const ENTROPY_BUFFER_SIZE: usize = 32;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub const HASH_OUTPUT_SIZE: usize = 32;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub const DEFAULT_ENTROPY_THRESHOLD: u64 = 256;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:19:1
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub const MIN_ENTROPY_TIME_SECONDS: u64 = 1;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub const MAX_TIMING_JITTER_MICROS: u64 = 1000;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:23:1
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub const MEMORY_SCRUB_ROUNDS: usize = 3;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:24:1
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub const SECURE_ALLOCATION_SIZE: usize = 4096;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:27:1
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub const MAX_ALGORITHM_VERSIONS: usize = 10;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub const DEFAULT_CRYPTO_VERSION: u8 = 1;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:31:1
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub const MAX_ENCRYPTION_SIZE: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:32:1
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub const MAX_SIGNATURE_SIZE: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:33:1
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub const MAX_KEY_SIZE: usize = 8192; // 8KB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub const SLOW_OPERATION_THRESHOLD_MS: u64 = 1000;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub const MEMORY_USAGE_THRESHOLD_MB: u64 = 100;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:334:5
[INFO] [stdout]     |
[INFO] [stdout] 334 |     pub constant_time_operations: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:335:5
[INFO] [stdout]     |
[INFO] [stdout] 335 |     pub timing_protection: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     pub memory_scrubbing: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:337:5
[INFO] [stdout]     |
[INFO] [stdout] 337 |     pub entropy_quality: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:338:5
[INFO] [stdout]     |
[INFO] [stdout] 338 |     pub algorithm_agility: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:339:5
[INFO] [stdout]     |
[INFO] [stdout] 339 |     pub overall_score: f64,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     pub recommendations: Vec<String>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2`
[INFO] running `Command { std: "docker" "inspect" "5db039ac1df54797c403311ade0ce401bb0237af7995449cdfc1834d9c79ee34", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5db039ac1df54797c403311ade0ce401bb0237af7995449cdfc1834d9c79ee34", kill_on_drop: false }`
[INFO] [stdout] 5db039ac1df54797c403311ade0ce401bb0237af7995449cdfc1834d9c79ee34
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3be67a4523fa3bd6a6799865fe4c3c65b0d6d281aee7275c4bc7c09ff2cf6f96
[INFO] running `Command { std: "docker" "start" "-a" "3be67a4523fa3bd6a6799865fe4c3c65b0d6d281aee7275c4bc7c09ff2cf6f96", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stdout] warning: unused imports: `EntropyMonitor`, `SecureMemory`, `TimingProtection`, and `constant_time_compare`
[INFO] [stdout]  --> src/crypto.rs:7:40
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::security::{SecurityManager, EntropyMonitor, TimingProtection, SecureMemory, constant_time_compare};
[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 imports: `ZeroizeOnDrop` and `Zeroize`
[INFO] [stdout]   --> src/crypto.rs:21:15
[INFO] [stdout]    |
[INFO] [stdout] 21 | use zeroize::{Zeroize, ZeroizeOnDrop};
[INFO] [stdout]    |               ^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]   --> src/security.rs:10:13
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::{Error, Result};
[INFO] [stdout]    |             ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Instant`
[INFO] [stdout]   --> src/security.rs:13:27
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::time::{Duration, Instant};
[INFO] [stdout]    |                           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:131:37
[INFO] [stdout]     |
[INFO] [stdout] 131 |         let key = Key::<Aes256Gcm>::from_slice(&symmetric_key);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:134:28
[INFO] [stdout]     |
[INFO] [stdout] 134 |         let nonce = Nonce::from_slice(&nonce_bytes);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:162:43
[INFO] [stdout]     |
[INFO] [stdout] 162 |         let kyber_key = Key::<Aes256Gcm>::from_slice(&shared_secret_bytes[..32.min(shared_secret_bytes.len())]);
[INFO] [stdout]     |                                           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:165:34
[INFO] [stdout]     |
[INFO] [stdout] 165 |         let kyber_nonce = Nonce::from_slice(&kyber_nonce_bytes);
[INFO] [stdout]     |                                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:212:28
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let nonce = Nonce::from_slice(&encrypted_data[..12]);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let key = Key::<Aes256Gcm>::from_slice(&symmetric_key);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:257:37
[INFO] [stdout]     |
[INFO] [stdout] 257 |         let key = Key::<Aes256Gcm>::from_slice(&shared_secret_bytes[..32.min(shared_secret_bytes.len())]);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:259:28
[INFO] [stdout]     |
[INFO] [stdout] 259 |         let nonce = Nonce::from_slice(nonce_bytes);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `is_cleared` is never read
[INFO] [stdout]    --> src/security.rs:192:5
[INFO] [stdout]     |
[INFO] [stdout] 192 |     is_cleared: AtomicBool,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `private_keys` is never used
[INFO] [stdout]   --> src/keys.rs:86:19
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl KeyPair {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub(crate) fn private_keys(&self) -> &PrivateKeys {
[INFO] [stdout]    |                   ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:4:1
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub const RSA_KEY_SIZE: usize = 4096;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> src/lib.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | #![warn(missing_docs, rust_2018_idioms)]
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub const KYBER_KEY_SIZE: usize = 1024;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub const DILITHIUM_KEY_SIZE: usize = 5;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:9:1
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub const NIST_LEVEL_5: u8 = 5;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const KYBER1024_CIPHERTEXT_BYTES: usize = 1568;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:13:1
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const NONCE_BYTES: usize = 12;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub const ENTROPY_BUFFER_SIZE: usize = 32;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub const HASH_OUTPUT_SIZE: usize = 32;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub const DEFAULT_ENTROPY_THRESHOLD: u64 = 256;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:19:1
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub const MIN_ENTROPY_TIME_SECONDS: u64 = 1;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub const MAX_TIMING_JITTER_MICROS: u64 = 1000;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:23:1
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub const MEMORY_SCRUB_ROUNDS: usize = 3;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:24:1
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub const SECURE_ALLOCATION_SIZE: usize = 4096;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:27:1
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub const MAX_ALGORITHM_VERSIONS: usize = 10;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub const DEFAULT_CRYPTO_VERSION: u8 = 1;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:31:1
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub const MAX_ENCRYPTION_SIZE: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:32:1
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub const MAX_SIGNATURE_SIZE: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:33:1
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub const MAX_KEY_SIZE: usize = 8192; // 8KB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub const SLOW_OPERATION_THRESHOLD_MS: u64 = 1000;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub const MEMORY_USAGE_THRESHOLD_MB: u64 = 100;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:334:5
[INFO] [stdout]     |
[INFO] [stdout] 334 |     pub constant_time_operations: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:335:5
[INFO] [stdout]     |
[INFO] [stdout] 335 |     pub timing_protection: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     pub memory_scrubbing: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:337:5
[INFO] [stdout]     |
[INFO] [stdout] 337 |     pub entropy_quality: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:338:5
[INFO] [stdout]     |
[INFO] [stdout] 338 |     pub algorithm_agility: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:339:5
[INFO] [stdout]     |
[INFO] [stdout] 339 |     pub overall_score: f64,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     pub recommendations: Vec<String>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling quantum-shield v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `EntropyMonitor`, `SecureMemory`, `TimingProtection`, and `constant_time_compare`
[INFO] [stdout]  --> src/crypto.rs:7:40
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::security::{SecurityManager, EntropyMonitor, TimingProtection, SecureMemory, constant_time_compare};
[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 imports: `ZeroizeOnDrop` and `Zeroize`
[INFO] [stdout]   --> src/crypto.rs:21:15
[INFO] [stdout]    |
[INFO] [stdout] 21 | use zeroize::{Zeroize, ZeroizeOnDrop};
[INFO] [stdout]    |               ^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]   --> src/security.rs:10:13
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::{Error, Result};
[INFO] [stdout]    |             ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]    --> tests/security_tests.rs:352:19
[INFO] [stdout]     |
[INFO] [stdout] 352 |     let manager = Arc::new(SecurityManager::new());
[INFO] [stdout]     |                   ^^^ use of undeclared type `Arc`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout]  10 + use std::sync::Arc;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]    --> tests/security_tests.rs:356:29
[INFO] [stdout]     |
[INFO] [stdout] 356 |         let manager_clone = Arc::clone(&manager);
[INFO] [stdout]     |                             ^^^ use of undeclared type `Arc`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout]  10 + use std::sync::Arc;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unblinded`
[INFO] [stdout]   --> tests/security_tests.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 83 |     let unblinded = protection.remove_blinding(&blinded, blinding_factor).unwrap();
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unblinded`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `original_data`
[INFO] [stdout]   --> tests/security_tests.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let original_data = secure_mem.as_slice().to_vec();
[INFO] [stdout]    |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:131:37
[INFO] [stdout]     |
[INFO] [stdout] 131 |         let key = Key::<Aes256Gcm>::from_slice(&symmetric_key);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:134:28
[INFO] [stdout]     |
[INFO] [stdout] 134 |         let nonce = Nonce::from_slice(&nonce_bytes);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:162:43
[INFO] [stdout]     |
[INFO] [stdout] 162 |         let kyber_key = Key::<Aes256Gcm>::from_slice(&shared_secret_bytes[..32.min(shared_secret_bytes.len())]);
[INFO] [stdout]     |                                           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:165:34
[INFO] [stdout]     |
[INFO] [stdout] 165 |         let kyber_nonce = Nonce::from_slice(&kyber_nonce_bytes);
[INFO] [stdout]     |                                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:212:28
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let nonce = Nonce::from_slice(&encrypted_data[..12]);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let key = Key::<Aes256Gcm>::from_slice(&symmetric_key);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:257:37
[INFO] [stdout]     |
[INFO] [stdout] 257 |         let key = Key::<Aes256Gcm>::from_slice(&shared_secret_bytes[..32.min(shared_secret_bytes.len())]);
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sha2::digest::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
[INFO] [stdout]    --> src/crypto.rs:259:28
[INFO] [stdout]     |
[INFO] [stdout] 259 |         let nonce = Nonce::from_slice(nonce_bytes);
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `quantum-shield` (test "security_tests") due to 2 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/keys.rs:112:13
[INFO] [stdout]     |
[INFO] [stdout] 112 |         let mut private = PrivateKeys::new(
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `is_cleared` is never read
[INFO] [stdout]    --> src/security.rs:192:5
[INFO] [stdout]     |
[INFO] [stdout] 192 |     is_cleared: AtomicBool,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/security.rs:508:13
[INFO] [stdout]     |
[INFO] [stdout] 508 |         let mut agility = AlgorithmAgility::new(1, vec![1, 2, 3]);
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `private_keys` is never used
[INFO] [stdout]   --> src/keys.rs:86:19
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl KeyPair {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub(crate) fn private_keys(&self) -> &PrivateKeys {
[INFO] [stdout]    |                   ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:4:1
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub const RSA_KEY_SIZE: usize = 4096;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]   --> src/lib.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | #![warn(missing_docs, rust_2018_idioms)]
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub const KYBER_KEY_SIZE: usize = 1024;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub const DILITHIUM_KEY_SIZE: usize = 5;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]  --> src/constants.rs:9:1
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub const NIST_LEVEL_5: u8 = 5;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const KYBER1024_CIPHERTEXT_BYTES: usize = 1568;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:13:1
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const NONCE_BYTES: usize = 12;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub const ENTROPY_BUFFER_SIZE: usize = 32;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub const HASH_OUTPUT_SIZE: usize = 32;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub const DEFAULT_ENTROPY_THRESHOLD: u64 = 256;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:19:1
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub const MIN_ENTROPY_TIME_SECONDS: u64 = 1;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub const MAX_TIMING_JITTER_MICROS: u64 = 1000;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:23:1
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub const MEMORY_SCRUB_ROUNDS: usize = 3;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:24:1
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub const SECURE_ALLOCATION_SIZE: usize = 4096;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:27:1
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub const MAX_ALGORITHM_VERSIONS: usize = 10;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub const DEFAULT_CRYPTO_VERSION: u8 = 1;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:31:1
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub const MAX_ENCRYPTION_SIZE: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:32:1
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub const MAX_SIGNATURE_SIZE: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:33:1
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub const MAX_KEY_SIZE: usize = 8192; // 8KB
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub const SLOW_OPERATION_THRESHOLD_MS: u64 = 1000;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a constant
[INFO] [stdout]   --> src/constants.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub const MEMORY_USAGE_THRESHOLD_MB: u64 = 100;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:334:5
[INFO] [stdout]     |
[INFO] [stdout] 334 |     pub constant_time_operations: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:335:5
[INFO] [stdout]     |
[INFO] [stdout] 335 |     pub timing_protection: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     pub memory_scrubbing: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:337:5
[INFO] [stdout]     |
[INFO] [stdout] 337 |     pub entropy_quality: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:338:5
[INFO] [stdout]     |
[INFO] [stdout] 338 |     pub algorithm_agility: bool,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:339:5
[INFO] [stdout]     |
[INFO] [stdout] 339 |     pub overall_score: f64,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: missing documentation for a struct field
[INFO] [stdout]    --> src/security.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     pub recommendations: Vec<String>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "3be67a4523fa3bd6a6799865fe4c3c65b0d6d281aee7275c4bc7c09ff2cf6f96", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3be67a4523fa3bd6a6799865fe4c3c65b0d6d281aee7275c4bc7c09ff2cf6f96", kill_on_drop: false }`
[INFO] [stdout] 3be67a4523fa3bd6a6799865fe4c3c65b0d6d281aee7275c4bc7c09ff2cf6f96
